From: David ‘Bombe’ Roden Date: Thu, 27 Feb 2014 07:38:13 +0000 (+0100) Subject: Iterate over the current versions of the Sones. X-Git-Tag: 0.8.8^2~2 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=63b6bf1c21b4a2b87c82938b3d969bae3cb8dd4e Iterate over the current versions of the Sones. The keys used in the soneInserters map are Sones fresh from the startup, most of them shouldn’t even have profiles. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7e93410..ecb5857 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1763,7 +1763,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, synchronized (sones) { for (Entry soneInserter : soneInserters.entrySet()) { soneInserter.getValue().stop(); - saveSone(soneInserter.getKey()); + saveSone(getLocalSone(soneInserter.getKey().getId(), false)); } } saveConfiguration();