Simplify
This commit is contained in:
parent
28b8573b2a
commit
ac6c3b85f2
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user