From: David ‘Bombe’ Roden Date: Wed, 17 Nov 2010 21:40:03 +0000 (+0100) Subject: Only overwrite time when it’s newer. X-Git-Tag: 0.3-RC1~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dbf29705015d7e81507a49849bd434e6654c6506;p=Sone.git Only overwrite time when it’s newer. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 33c4dbb..e23ce6b 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -851,7 +851,9 @@ public class Core implements IdentityListener { } } synchronized (storedSone) { - storedSone.setTime(sone.getTime()); + if (!soneRescueMode || (sone.getTime() > storedSone.getTime())) { + storedSone.setTime(sone.getTime()); + } storedSone.setClient(sone.getClient()); storedSone.setProfile(sone.getProfile()); if (soneRescueMode) {