Safer shutdown
This commit is contained in:
parent
65e224f149
commit
243f6581c6
@ -53,11 +53,14 @@ class OioChildEventLoop extends SingleThreadEventLoop {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isShutdown() && peekTask() == null) {
|
if (isShutdown()) {
|
||||||
|
ch.unsafe().close(ch.unsafe().voidFuture());
|
||||||
|
if (peekTask() == null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void wakeup(boolean inEventLoop) {
|
protected void wakeup(boolean inEventLoop) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user