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:
Jeff Pinner 2014-07-30 16:12:06 -07:00 committed by Trustin Lee
parent e71cbb9308
commit 9fc474ff33

View File

@ -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)) {