From c9c0950b0d1e77d8d2802f40b89857915f95abd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Oct 2010 05:03:27 +0200 Subject: [PATCH] Watch Sone for updates after it has been downloaded. --- src/main/java/net/pterodactylus/sone/core/Core.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.7.4