Try to fix RejectedExecutionException on OSX
This commit is contained in:
@@ -95,6 +95,7 @@ public class TaskList extends Thread {
|
|||||||
t2.setParallelExecuting(true);
|
t2.setParallelExecuting(true);
|
||||||
Invoker thread = new Invoker(t2, runningThread);
|
Invoker thread = new Invoker(t2, runningThread);
|
||||||
runningThread.add(thread);
|
runningThread.add(thread);
|
||||||
|
if (!EXECUTOR_SERVICE.isTerminated())
|
||||||
EXECUTOR_SERVICE.execute(thread);
|
EXECUTOR_SERVICE.execute(thread);
|
||||||
}
|
}
|
||||||
while (!runningThread.isEmpty())
|
while (!runningThread.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user