mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 13:45:36 +01:00
Fixes #336 - Though you should also update to Java 8
This commit is contained in:
parent
4cafeb68ca
commit
bbb6346aff
@ -115,13 +115,8 @@ public class SetQueue {
|
||||
if (Fawe.get().isJava8()) {
|
||||
pool.awaitQuiescence(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
|
||||
} else {
|
||||
try {
|
||||
for (Runnable run : pool.shutdownNow()) {
|
||||
run.run();
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
pool.shutdown();
|
||||
pool.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
|
||||
pool = new ForkJoinPool();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user