Store all added Sones in the Sone cache.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 211a76e..a300c66 100644 (file)
@@ -147,6 +147,7 @@ public class Core extends AbstractService {
         */
        public void addSone(Sone sone) {
                if (localSones.add(sone)) {
+                       soneCache.put(sone.getId(), sone);
                        SoneInserter soneInserter = new SoneInserter(freenetInterface, sone);
                        soneInserter.start();
                        soneInserters.put(sone, soneInserter);