From: David ‘Bombe’ Roden Date: Mon, 8 Nov 2010 20:07:39 +0000 (+0100) Subject: Sones may be known before but must not have a request URI to be new. X-Git-Tag: 0.2.1~17 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4075fb19b937045f682b12c09b9873a9543f5ddb;p=Sone.git Sones may be known before but must not have a request URI to be new. --- 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) {