Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
panxiaojun233 committed Jan 21, 2021
1 parent 4d63465 commit 34e5260
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)

@Override
public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
if (ctx.channel().isActive()) { // Ignore notification that the socket was closed
final Connection connection = Connection.getConnectionFromChannel(ctx.channel());
if (connection != null) {
connection.onIdle();
}
}
super.close(ctx, promise);
}

Expand Down

0 comments on commit 34e5260

Please sign in to comment.