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