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) {
|
if (future != null) {
|
||||||
future.setFailure(new ClosedChannelException());
|
future.setFailure(new ClosedChannelException());
|
||||||
}
|
}
|
||||||
|
close(channel, channel.getSucceededFuture());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -644,7 +645,10 @@ class NioWorker implements Runnable {
|
|||||||
future.setSuccess();
|
future.setSuccess();
|
||||||
}
|
}
|
||||||
} catch (ClosedChannelException e) {
|
} catch (ClosedChannelException e) {
|
||||||
future.setFailure(e);
|
if (future != null) {
|
||||||
|
future.setFailure(e);
|
||||||
|
}
|
||||||
|
close(channel, channel.getSucceededFuture());
|
||||||
throw new ChannelException(
|
throw new ChannelException(
|
||||||
"Failed to register a socket to the selector.", e);
|
"Failed to register a socket to the selector.", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user