Copy known-flag from stored Sone to new Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Jul 2013 20:15:02 +0000 (22:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Jul 2013 20:15:02 +0000 (22:15 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 60c2506..008702c 100644 (file)
@@ -1051,6 +1051,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
                        }
                        synchronized (sones) {
                                sone.setOptions(storedSone.get().getOptions());
+                               sone.setKnown(storedSone.get().isKnown());
                                sones.put(sone.getId(), sone);
                        }
                }