Always download Sones, older editions are skipped later in Core.updateSone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 7 Mar 2011 19:49:37 +0000 (20:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 7 Mar 2011 19:49:37 +0000 (20:49 +0100)
This fixes #107.

src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index 933191f..b2d1da4 100644 (file)
@@ -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);