diff --git a/core/src/main/java/com/threerings/getdown/data/Application.java b/core/src/main/java/com/threerings/getdown/data/Application.java index 997c908..1a4729c 100644 --- a/core/src/main/java/com/threerings/getdown/data/Application.java +++ b/core/src/main/java/com/threerings/getdown/data/Application.java @@ -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 actions = new LinkedBlockingQueue(); 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);