Set the status for newly created Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Jan 2011 08:40:42 +0000 (09:40 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Jan 2011 08:40:42 +0000 (09:40 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 27e8db8..3ebdb59 100644 (file)
@@ -415,6 +415,7 @@ public class Core implements IdentityListener, UpdateListener {
                        if ((sone == null) && create) {
                                sone = new Sone(id);
                                localSones.put(id, sone);
+                               setSoneStatus(sone, SoneStatus.unknown);
                        }
                        return sone;
                }
@@ -458,6 +459,7 @@ public class Core implements IdentityListener, UpdateListener {
                        if ((sone == null) && create) {
                                sone = new Sone(id);
                                remoteSones.put(id, sone);
+                               setSoneStatus(sone, SoneStatus.unknown);
                        }
                        return sone;
                }