Shutdown our verifier thread pool when we're done.

This commit is contained in:
Michael Bayne
2018-11-26 13:15:05 -08:00
parent 9dd8285243
commit 4d40bc53db
@@ -1236,7 +1236,7 @@ public class Application
// resources are verified on background threads supplied by the thread pool, and progress
// is reported by posting runnable actions to the actions queue which is processed by the
// main (UI) thread
Executor exec = Executors.newFixedThreadPool(SysProps.threadPoolSize());
ExecutorService exec = Executors.newFixedThreadPool(SysProps.threadPoolSize());
final BlockingQueue<Runnable> actions = new LinkedBlockingQueue<Runnable>();
final int[] completed = new int[1];
@@ -1290,6 +1290,8 @@ public class Application
action.run();
}
exec.shutdown();
toInstall.addAll(toInstallAsync);
toDownload.addAll(toDownloadAsync);
unpacked.addAll(unpackedAsync);