mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-04-18 18:40:34 +08:00
Try to fix RejectedExecutionException on OSX
This commit is contained in:
parent
89fcf4526c
commit
892d8fe09c
@ -95,7 +95,8 @@ public class TaskList extends Thread {
|
||||
t2.setParallelExecuting(true);
|
||||
Invoker thread = new Invoker(t2, runningThread);
|
||||
runningThread.add(thread);
|
||||
EXECUTOR_SERVICE.execute(thread);
|
||||
if (!EXECUTOR_SERVICE.isTerminated())
|
||||
EXECUTOR_SERVICE.execute(thread);
|
||||
}
|
||||
while (!runningThread.isEmpty())
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user