Skip to content

Commit 127dfa9

Browse files
committed
Definitely stop sending after connection close
1 parent e5b73c4 commit 127dfa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/kitteh/irc/client/library/defaults/feature/network/NettyConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
230230

231231
// Clean up on disconnect
232232
this.channel.closeFuture().addListener(future -> {
233+
this.client.pauseMessageSending();
233234
if (this.ping != null) {
234235
this.ping.cancel(true);
235236
}

0 commit comments

Comments
 (0)