From: David ‘Bombe’ Roden Date: Wed, 24 Dec 2014 19:35:41 +0000 (+0100) Subject: Stop Sone rescuers when stopping core. X-Git-Tag: 0.9-rc1^2~3^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=be1d948bbb2f9ff8ed5836d651b09ae658baed83;p=Sone.git Stop Sone rescuers when stopping core. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 17905f3..1153c0f 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1410,6 +1410,11 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, saveSone(soneInserter.getKey()); } } + synchronized (soneRescuers) { + for (SoneRescuer soneRescuer : soneRescuers.values()) { + soneRescuer.stop(); + } + } saveConfiguration(); database.stop(); webOfTrustUpdater.stop();