Watch Sone for updates after it has been downloaded.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 03:03:27 +0000 (05:03 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 03:03:27 +0000 (05:03 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index b838216..b2aa43d 100644 (file)
@@ -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);
                }