Use forceful, non-blocking shutdown of thread pool.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Mar 2014 05:45:39 +0000 (06:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Mar 2014 05:45:39 +0000 (06:45 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index a2e54a6..0107a22 100644 (file)
@@ -1289,8 +1289,8 @@ public class Core extends AbstractService implements SoneProvider {
                webOfTrustUpdater.stop();
                updateChecker.stop();
                soneDownloader.stop();
-               soneDownloaders.shutdown();
                identityManager.stop();
+               soneDownloaders.shutdownNow();
        }
 
        //