Skip to content
Permalink
Browse files

Made AbstractNettyIoClient disconnect async (previously was sync and …

…caused dead lock with websocket protocol)
  • Loading branch information...
richturner committed Aug 13, 2019
1 parent 341318f commit e9ad32ea00ed92f7cdcd5ee89198ed03e926b7f5
Showing with 2 additions and 4 deletions.
  1. +2 −4 agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIoClient.java
@@ -210,18 +210,16 @@ public synchronized void disconnect() {

if (channelFuture != null) {
channelFuture.cancel(true);
channelFuture.sync();
channelFuture = null;
}

// Close the channel
if (channel != null) {
channel.close().sync();
channel.disconnect();
channel.close();
channel = null;
}

} catch (InterruptedException ignored) {

} finally {
if (workerGroup != null) {
workerGroup.shutdownGracefully();

0 comments on commit e9ad32e

Please sign in to comment.
You can’t perform that action at this time.