From f3cb07daf85e263e2bed9e0bcab3e61cddc17be3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 4 Nov 2010 22:44:07 +0100 Subject: [PATCH] Update Sones even if they are already known. --- src/main/java/net/pterodactylus/sone/core/Core.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index d63b938..a7623b9 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -436,10 +436,6 @@ public class Core implements IdentityListener { return null; } synchronized (localSones) { - if (localSones.containsKey(ownIdentity.getId())) { - logger.log(Level.FINE, "Tried to add known local Sone: %s", ownIdentity); - return localSones.get(ownIdentity.getId()); - } final Sone sone; try { sone = getLocalSone(ownIdentity.getId()).setIdentity(ownIdentity).setInsertUri(new FreenetURI(ownIdentity.getInsertUri())).setRequestUri(new FreenetURI(ownIdentity.getRequestUri())); @@ -490,10 +486,6 @@ public class Core implements IdentityListener { } synchronized (remoteSones) { final Sone sone = getRemoteSone(identity.getId()).setIdentity(identity); - if (remoteSones.containsKey(identity.getId())) { - logger.log(Level.FINE, "Identity already exists: %s", identity); - return remoteSones.get(identity.getId()); - } sone.setRequestUri(getSoneUri(identity.getRequestUri(), identity.getProperty("Sone.LatestEdition"))); remoteSones.put(identity.getId(), sone); soneDownloader.addSone(sone); -- 2.7.4