Fixes #336 - Though you should also update to Java 8

This commit is contained in:
Jesse Boyd 2016-10-22 00:31:10 +11:00
parent 4cafeb68ca
commit bbb6346aff
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -115,13 +115,8 @@ public class SetQueue {
if (Fawe.get().isJava8()) { if (Fawe.get().isJava8()) {
pool.awaitQuiescence(Long.MAX_VALUE, TimeUnit.MILLISECONDS); pool.awaitQuiescence(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
} else { } else {
try { pool.shutdown();
for (Runnable run : pool.shutdownNow()) { pool.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
run.run();
}
} catch (Throwable e) {
e.printStackTrace();
}
pool = new ForkJoinPool(); pool = new ForkJoinPool();
} }
} }