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