From 2f51781e953983278e7f7d12e9446c8e4f9b2fcc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 17 Nov 2010 20:42:49 +0100 Subject: [PATCH] Check for modifications every second. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index b79e620..41c1f82 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -163,6 +163,9 @@ public class SoneInserter extends AbstractService { /* don’t insert locked Sones. */ if (core.isLocked(sone)) { /* trigger redetection when the Sone is unlocked. */ + synchronized (sone) { + modified = !sone.getFingerprint().equals(lastInsertFingerprint); + } lastFingerprint = ""; lastModificationTime = 0; continue; -- 2.7.4