From: David ‘Bombe’ Roden Date: Sat, 16 Oct 2010 16:01:45 +0000 (+0200) Subject: Only download remote Sones. X-Git-Tag: 0.1-RC1~267 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0079039b42e82267b30018162f5be611d80d6b0f;p=Sone.git Only download remote Sones. --- 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); + } } /**