Simplify
This commit is contained in:
parent
28b8573b2a
commit
ac6c3b85f2
@ -200,11 +200,8 @@ public final class GlobalEventExecutor extends AbstractEventExecutor {
|
||||
throw new NullPointerException("task");
|
||||
}
|
||||
|
||||
boolean inEventLoop = inEventLoop();
|
||||
if (inEventLoop) {
|
||||
addTask(task);
|
||||
} else {
|
||||
addTask(task);
|
||||
addTask(task);
|
||||
if (!inEventLoop()) {
|
||||
startThread();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user