From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 14:27:01 +0000 (+0200) Subject: Stop all Sone inserters when stopping the core. X-Git-Tag: 0.1-RC1~460 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8b9c6e55b8509e4651ceca3b052f201739623213;p=Sone.git Stop all Sone inserters when stopping the core. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 913355a..4be02f6 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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(); }