Save all local Sones when stopping Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 May 2011 04:57:43 +0000 (06:57 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 May 2011 04:57:43 +0000 (06:57 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 4914066..20852d2 100644 (file)
@@ -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);