From: David ‘Bombe’ Roden Date: Thu, 11 Nov 2010 19:11:16 +0000 (+0100) Subject: Don’t only update remote Sones, update any known Sones. X-Git-Tag: 0.2.1~7 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3495e4e58c3d5b2c920df98e6e4af559dc2566ae;p=Sone.git Don’t only update remote Sones, update any known Sones. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 616dd04..f8f8948 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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;