From: David ‘Bombe’ Roden Date: Thu, 26 May 2011 04:57:43 +0000 (+0200) Subject: Save all local Sones when stopping Sone. X-Git-Tag: 0.6.5^2~21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f69752ddd5a24ee1e56276ca45245954e36c8728;p=Sone.git Save all local Sones when stopping Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 4914066..20852d2 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1703,6 +1703,9 @@ public class Core implements IdentityListener, UpdateListener { for (SoneInserter soneInserter : soneInserters.values()) { soneInserter.stop(); } + for (Sone localSone : localSones.values()) { + saveSone(localSone); + } } updateChecker.stop(); updateChecker.removeUpdateListener(this);