From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 19:44:19 +0000 (+0100) Subject: Fire “Sone is marked known” event. X-Git-Tag: 0.3-RC1~65 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b2225e3867ebfa8218271c434a05bfd4287fec53;p=Sone.git Fire “Sone is marked known” event. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 2894945..0fbbf3c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -438,6 +438,9 @@ public class Core implements IdentityListener { synchronized (newSones) { boolean isNew = !knownSones.contains(sone.getId()) && newSones.remove(sone.getId()); knownSones.add(sone.getId()); + if (isNew) { + coreListenerManager.fireMarkSoneKnown(sone); + } return isNew; } }