Move method in correct scope
This commit is contained in:
parent
4d0621855a
commit
9d8c4ded50
@ -261,6 +261,11 @@ public abstract class AbstractNioChannel extends AbstractChannel {
|
||||
// directly call super.flush0() to force a flush now
|
||||
super.flush0();
|
||||
}
|
||||
|
||||
private boolean isFlushPending() {
|
||||
SelectionKey selectionKey = selectionKey();
|
||||
return selectionKey.isValid() && (selectionKey.interestOps() & SelectionKey.OP_WRITE) != 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -268,11 +273,6 @@ public abstract class AbstractNioChannel extends AbstractChannel {
|
||||
return loop instanceof NioEventLoop;
|
||||
}
|
||||
|
||||
private boolean isFlushPending() {
|
||||
SelectionKey selectionKey = this.selectionKey;
|
||||
return selectionKey.isValid() && (selectionKey.interestOps() & SelectionKey.OP_WRITE) != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doRegister() throws Exception {
|
||||
boolean selected = false;
|
||||
|
Loading…
Reference in New Issue
Block a user