Try to fix RejectedExecutionException on OSX
This commit is contained in:
@@ -95,7 +95,8 @@ 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);
|
||||||
EXECUTOR_SERVICE.execute(thread);
|
if (!EXECUTOR_SERVICE.isTerminated())
|
||||||
|
EXECUTOR_SERVICE.execute(thread);
|
||||||
}
|
}
|
||||||
while (!runningThread.isEmpty())
|
while (!runningThread.isEmpty())
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user