From: David ‘Bombe’ Roden Date: Mon, 17 Jan 2011 08:40:42 +0000 (+0100) Subject: Set the status for newly created Sones. X-Git-Tag: 0.4.2^2~27^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0dc78f88b1f1c66e859567f7c6ba038cac7d92db;p=Sone.git Set the status for newly created Sones. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 27e8db8..3ebdb59 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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; }