From: David ‘Bombe’ Roden Date: Fri, 12 Sep 2014 19:53:35 +0000 (+0200) Subject: Use fetch action instead of custom Runnable. X-Git-Tag: 0.9-rc1^2~3^2~133 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3568c3e220993291936f182ee1845bd795b8f513;p=Sone.git Use fetch action instead of custom Runnable. --- diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index d4640f8..5dd8fbf 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -202,13 +202,7 @@ public class FreenetInterface { logger.log(Level.FINE, String.format("Found USK update for Sone “%s” at %s, new known good: %s, new slot too: %s.", sone, key, newKnownGood, newSlotToo)); if (edition > sone.getLatestEdition()) { sone.setLatestEdition(edition); - new Thread(new Runnable() { - - @Override - public void run() { - soneDownloader.fetchSone(sone); - } - }, "Sone Downloader").start(); + new Thread(soneDownloader.fetchSoneAction(sone), "Sone Downloader").start(); } }