Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Jul 18, 2013
1 parent 28b8573 commit ac6c3b8
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,8 @@ public void execute(Runnable task) {
throw new NullPointerException("task");
}

boolean inEventLoop = inEventLoop();
if (inEventLoop) {
addTask(task);
} else {
addTask(task);
addTask(task);
if (!inEventLoop()) {
startThread();
}
}
Expand Down

0 comments on commit ac6c3b8

Please sign in to comment.