Fixed find bugs warnings
This commit is contained in:
parent
392900e4b6
commit
f93c240a7c
@ -117,7 +117,8 @@ class NioClientSocketPipelineSink extends AbstractChannelSink {
|
||||
} else if (e instanceof MessageEvent) {
|
||||
MessageEvent event = (MessageEvent) e;
|
||||
NioSocketChannel channel = (NioSocketChannel) event.getChannel();
|
||||
channel.writeBuffer.offer(event);
|
||||
boolean offered = channel.writeBuffer.offer(event);
|
||||
assert offered;
|
||||
NioWorker.write(channel, true);
|
||||
}
|
||||
}
|
||||
@ -217,7 +218,8 @@ class NioClientSocketPipelineSink extends AbstractChannelSink {
|
||||
assert selector != null && selector.isOpen();
|
||||
|
||||
started = true;
|
||||
registerTaskQueue.offer(registerTask);
|
||||
boolean offered = registerTaskQueue.offer(registerTask);
|
||||
assert offered;
|
||||
}
|
||||
|
||||
if (wakenUp.compareAndSet(false, true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user