Client connection cleanup

I have a loop to periodically attempt to connect:

while(!connected) {
session = new Session(executor);
session.addOnJoinListener(this::subscribe);
session.addOnDisconnectListener(this::disconnect);
session.addOnConnectListener(this::connect);

client = new Client(session, getUrl(), getRealm(), executor);
try {
    exitInfoCompletableFuture.get();
} catch (Exception e) {
}

try {
    Thread.sleep(10000);
} catch (InterruptedException e) {
}

}

However, I end up with a bunch of nioEventLoopGroup threads.

What is the proper way to attempt re-connects without leaking threads?

We have fixed the issue in autobahn-java master but unfortunately haven’t had the change to do a new release. I will try to do a release later today. Here is the fix https://github.com/crossbario/autobahn-java/pull/442

Thanks for the reply, I verified it works by pulling in the changes from that commit.

Do you know when a new Release will be available?