#776 FFDec stop working at all after setting "number of threads" to 0 fixed

This commit is contained in:
honfika@gmail.com
2015-01-21 12:59:07 +01:00
parent 4afa3c4ac1
commit dfd3166bb9
5 changed files with 14 additions and 5 deletions

View File

@@ -1139,7 +1139,7 @@ public final class SWF implements SWFContainerItem, Timelined {
logger.log(Level.SEVERE, "Error during ABC export", ex);
}
} else {
ExecutorService executor = Executors.newFixedThreadPool(Configuration.parallelThreadCount.get());
ExecutorService executor = Executors.newFixedThreadPool(Configuration.getParallelThreadCount());
List<Future<File>> futureResults = new ArrayList<>();
for (MyEntry<ClassPath, ScriptPack> item : packs) {
Future<File> future = executor.submit(new ExportPackTask(handler, cnt, packs.size(), item.getKey(), item.getValue(), outdir, exportMode, parallel));