From 4075fb19b937045f682b12c09b9873a9543f5ddb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Nov 2010 21:07:39 +0100 Subject: [PATCH] Sones may be known before but must not have a request URI to be new. --- src/main/java/net/pterodactylus/sone/core/Core.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 34be389..15a7b0e 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -526,9 +526,8 @@ public class Core implements IdentityListener { return null; } synchronized (remoteSones) { - boolean newSone = !isRemoteSone(identity.getId()); final Sone sone = getRemoteSone(identity.getId()).setIdentity(identity); - newSone &= sone.getRequestUri() == null; + boolean newSone = sone.getRequestUri() == null; sone.setRequestUri(getSoneUri(identity.getRequestUri())); sone.setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), (long) 0)); if (newSone) { -- 2.7.4