From: David ‘Bombe’ Roden Date: Sat, 16 Oct 2010 02:59:22 +0000 (+0200) Subject: Add Sones to cache, too. X-Git-Tag: 0.1-RC1~286 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fb6621f7a25478c3e31a7485397371cbb63c2db8;p=Sone.git Add Sones to cache, too. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index c910799..ccd5aff 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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); }