Skip to content

Commit

Permalink
#4717 cancel key before closing channel
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed May 11, 2022
1 parent 374b187 commit f781462
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public void doClose()
LOG.debug("doClose {}", this);
try
{
if (_key != null)
_key.cancel();
_channel.close();
}
catch (IOException e)
Expand Down

0 comments on commit f781462

Please sign in to comment.