Only download remote Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 16:01:45 +0000 (18:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 16:01:45 +0000 (18:01 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 362df22..b0dadbe 100644 (file)
@@ -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);
+               }
        }
 
        /**