From: David ‘Bombe’ Roden Date: Tue, 21 Jul 2015 20:36:29 +0000 (+0200) Subject: Store new Sones that can not be loaded X-Git-Tag: 0.9.3^2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a408811c37ec207a6ce2f71a7d14eff78861770b;p=Sone.git Store new Sones that can not be loaded ...because they were never saved so everything’s still peachy. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index fe0907f..da209d8 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -651,6 +651,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, soneInserters.put(sone, soneInserter); } loadSone(sone); + database.storeSone(sone); sone.setStatus(SoneStatus.idle); soneInserter.start(); return sone; @@ -1085,7 +1086,6 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, for (Album album : topLevelAlbums) { sone.getRootAlbum().addAlbum(album); } - database.storeSone(sone); synchronized (soneInserters) { soneInserters.get(sone).setLastInsertFingerprint(lastInsertFingerprint); }