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) {
|
if (inEventLoop) {
|
||||||
addTask(task);
|
addTask(task);
|
||||||
} else {
|
} else {
|
||||||
startThread();
|
|
||||||
addTask(task);
|
addTask(task);
|
||||||
|
startThread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user