Check before casting
This commit is contained in:
parent
a85f22e173
commit
c3e51af849
@ -136,7 +136,9 @@ public class NioWorker extends AbstractNioWorker {
|
|||||||
setInterestOps(channel, future, channel.getRawInterestOps());
|
setInterestOps(channel, future, channel.getRawInterestOps());
|
||||||
}
|
}
|
||||||
if (future != null) {
|
if (future != null) {
|
||||||
((NioSocketChannel) channel).setConnected();
|
if (channel instanceof NioSocketChannel) {
|
||||||
|
((NioSocketChannel) channel).setConnected();
|
||||||
|
}
|
||||||
future.setSuccess();
|
future.setSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user