From: David ‘Bombe’ Roden Date: Thu, 4 Nov 2010 21:43:22 +0000 (+0100) Subject: Load Sone locally when adding a local Sone. X-Git-Tag: 0.2-RC1~41 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=aa1e8b24c174c47408a2422404933574c4a797d0;p=Sone.git Load Sone locally when adding a local Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e4814fe..265b8e1 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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; } }