Don’t only update remote Sones, update any known Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Nov 2010 19:11:16 +0000 (20:11 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Nov 2010 19:11:16 +0000 (20:11 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 616dd04..f8f8948 100644 (file)
@@ -607,8 +607,8 @@ public class Core implements IdentityListener {
         *            The updated Sone
         */
        public void updateSone(Sone sone) {
-               if (isRemoteSone(sone)) {
-                       Sone storedSone = getRemoteSone(sone.getId());
+               if (hasSone(sone.getId())) {
+                       Sone storedSone = getSone(sone.getId());
                        if (!(sone.getTime() > storedSone.getTime())) {
                                logger.log(Level.FINE, "Downloaded Sone %s is not newer than stored Sone %s.", new Object[] { sone, storedSone });
                                return;