Load Sone locally when adding a local Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:43:22 +0000 (22:43 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:43:22 +0000 (22:43 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index e4814fe..265b8e1 100644 (file)
@@ -454,15 +454,7 @@ public class Core implements IdentityListener {
                        soneInserters.put(sone, soneInserter);
                        soneInserter.start();
                        setSoneStatus(sone, SoneStatus.idle);
-                       new Thread(new Runnable() {
-
-                               @Override
-                               @SuppressWarnings("synthetic-access")
-                               public void run() {
-                                       soneDownloader.fetchSone(sone);
-                               }
-
-                       }, "Sone Downloader").start();
+                       loadSone(sone);
                        return sone;
                }
        }