Shutdown our verifier thread pool when we're done.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user