From: David ‘Bombe’ Roden Date: Sat, 16 Oct 2010 03:03:27 +0000 (+0200) Subject: Watch Sone for updates after it has been downloaded. X-Git-Tag: 0.1-RC1~284 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c9c0950b0d1e77d8d2802f40b89857915f95abd3;p=Sone.git Watch Sone for updates after it has been downloaded. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index b838216..b2aa43d 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -312,7 +312,8 @@ public class Core extends AbstractService { try { FreenetURI realRequestUri = new FreenetURI(requestUri).setMetaString(new String[] { "sone.xml" }); FetchResult fetchResult = freenetInterface.fetchUri(realRequestUri); - soneDownloader.parseSone(null, fetchResult, realRequestUri); + Sone parsedSone = soneDownloader.parseSone(null, fetchResult, realRequestUri); + addSone(parsedSone); } catch (MalformedURLException mue1) { logger.log(Level.INFO, "Could not create URI from “" + requestUri + "”.", mue1); }