From 52a60b132ce14180b0d614bbccb1137b09a78eae Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 8 Mar 2011 13:50:53 +0100 Subject: [PATCH] Reregister USKs when Sone is already known to the downloader. --- src/main/java/net/pterodactylus/sone/core/SoneDownloader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index b2d1da4..7022f5e 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -93,10 +93,10 @@ public class SoneDownloader extends AbstractService { * The Sone to add */ public void addSone(Sone sone) { - if (sones.add(sone)) { + if (!sones.add(sone)) { freenetInterface.unregisterUsk(sone); - freenetInterface.registerUsk(sone, this); } + freenetInterface.registerUsk(sone, this); } /** -- 2.7.4