Fix a potential race condition where the worker thread of GlobalEventExecutor terminates with a pending task

- Potential fix for the hanging SpdyFrameDecoderTest
This commit is contained in:
Trustin Lee 2013-07-18 14:49:22 +09:00
parent 57d591d188
commit 28b8573b2a

View File

@ -204,8 +204,8 @@ public final class GlobalEventExecutor extends AbstractEventExecutor {
if (inEventLoop) {
addTask(task);
} else {
startThread();
addTask(task);
startThread();
}
}