Add Sones to cache, too.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 02:59:22 +0000 (04:59 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 02:59:22 +0000 (04:59 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index c910799..ccd5aff 100644 (file)
@@ -226,6 +226,7 @@ public class Core extends AbstractService {
         *            The Sone to watch for updates
         */
        public void addSone(Sone sone) {
+               soneCache.put(sone.getId(), sone);
                soneDownloader.addSone(sone);
        }