Watch Sone for updates after it has been downloaded.
[Sone.git] / 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);
                }