Stop all Sone inserters when stopping the core.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:27:01 +0000 (16:27 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:27:01 +0000 (16:27 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 913355a..4be02f6 100644 (file)
@@ -207,6 +207,10 @@ public class Core extends AbstractService {
         */
        @Override
        protected void serviceStop() {
+               /* stop all Sone inserters. */
+               for (SoneInserter soneInserter : soneInserters.values()) {
+                       soneInserter.stop();
+               }
                saveConfiguration();
        }