From: David ‘Bombe’ Roden Date: Mon, 7 Mar 2011 19:49:37 +0000 (+0100) Subject: Always download Sones, older editions are skipped later in Core.updateSone. X-Git-Tag: 0.4.4^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=51b657bab41ca6cd21f8d94aafe85b0795acfff8;p=Sone.git Always download Sones, older editions are skipped later in Core.updateSone. This fixes #107. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 933191f..b2d1da4 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -133,9 +133,6 @@ public class SoneDownloader extends AbstractService { * The URI to fetch the Sone from */ public void fetchSone(Sone sone, FreenetURI soneUri) { - if (core.getSoneStatus(sone) == SoneStatus.downloading) { - return; - } logger.log(Level.FINE, "Starting fetch for Sone “%s” from %s…", new Object[] { sone, soneUri }); FreenetURI requestUri = soneUri.setMetaString(new String[] { "sone.xml" }); core.setSoneStatus(sone, SoneStatus.downloading);