Forgot to close the channel
This commit is contained in:
parent
2d8b3b0a4e
commit
95584f5c34
@ -635,6 +635,7 @@ class NioWorker implements Runnable {
|
||||
if (future != null) {
|
||||
future.setFailure(new ClosedChannelException());
|
||||
}
|
||||
close(channel, channel.getSucceededFuture());
|
||||
return;
|
||||
}
|
||||
|
||||
@ -644,7 +645,10 @@ class NioWorker implements Runnable {
|
||||
future.setSuccess();
|
||||
}
|
||||
} catch (ClosedChannelException e) {
|
||||
future.setFailure(e);
|
||||
if (future != null) {
|
||||
future.setFailure(e);
|
||||
}
|
||||
close(channel, channel.getSucceededFuture());
|
||||
throw new ChannelException(
|
||||
"Failed to register a socket to the selector.", e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user