From 0079039b42e82267b30018162f5be611d80d6b0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Oct 2010 18:01:45 +0200 Subject: [PATCH] Only download remote Sones. --- src/main/java/net/pterodactylus/sone/core/Core.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 362df22..b0dadbe 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -245,7 +245,9 @@ public class Core extends AbstractService { */ public void addSone(Sone sone) { soneCache.put(sone.getId(), sone); - soneDownloader.addSone(sone); + if (!localSones.contains(sone)) { + soneDownloader.addSone(sone); + } } /** -- 2.7.4