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:
parent
57d591d188
commit
28b8573b2a
@ -204,8 +204,8 @@ public final class GlobalEventExecutor extends AbstractEventExecutor {
|
||||
if (inEventLoop) {
|
||||
addTask(task);
|
||||
} else {
|
||||
startThread();
|
||||
addTask(task);
|
||||
startThread();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user