Fire INTEREST_OPS ChannelStateEvent on change in AbstractNioWorker
Motivation: We forgot to set the flag 'changed' to 'true' after updating interestOps. Modifications: Add a missing 'changed = true;' Result: ChannelStateEvent(INTEREST_OPS) is always triggered correctly.
This commit is contained in:
parent
e71cbb9308
commit
9fc474ff33
@ -488,6 +488,7 @@ abstract class AbstractNioWorker extends AbstractNioSelector implements Worker {
|
||||
}
|
||||
|
||||
if (channel.getRawInterestOps() != newInterestOps) {
|
||||
changed = true;
|
||||
key.interestOps(newInterestOps);
|
||||
if (Thread.currentThread() != thread &&
|
||||
wakenUp.compareAndSet(false, true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user