Check for modifications every second.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 19:42:49 +0000 (20:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 19:42:49 +0000 (20:42 +0100)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index b79e620..41c1f82 100644 (file)
@@ -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;