Fix race
This commit is contained in:
parent
070c92906d
commit
4afd038fc0
@ -131,11 +131,9 @@ public class NioWorker extends AbstractNioWorker {
|
|||||||
selector, channel.getRawInterestOps(), channel);
|
selector, channel.getRawInterestOps(), channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
// TODO: Is this needed ?
|
|
||||||
setInterestOps(channel, future, channel.getRawInterestOps());
|
|
||||||
}
|
}
|
||||||
if (future != null) {
|
if (future != null) {
|
||||||
|
|
||||||
((NioSocketChannel) channel).setConnected();
|
((NioSocketChannel) channel).setConnected();
|
||||||
future.setSuccess();
|
future.setSuccess();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user