This commit is contained in:
Trustin Lee 2013-07-18 14:49:58 +09:00
parent 28b8573b2a
commit ac6c3b85f2

View File

@ -200,11 +200,8 @@ public final class GlobalEventExecutor extends AbstractEventExecutor {
throw new NullPointerException("task"); throw new NullPointerException("task");
} }
boolean inEventLoop = inEventLoop(); addTask(task);
if (inEventLoop) { if (!inEventLoop()) {
addTask(task);
} else {
addTask(task);
startThread(); startThread();
} }
} }