trivial
[vamsas.git] / src / org / vamsas / client / simpleclient / FileWatcher.java
index 34897a8..a3225db 100644 (file)
@@ -93,12 +93,16 @@ public class FileWatcher {
     }
     return false;
   }
-  
+  /**
+   * updates internal record of file state when caller has intentionally
+   * modified subject. (ignores locked-state of subject)
+   */
   public void setState() {
     if (subject!=null) {
-      lastStat = getStat(subject);
-      exists = subject.exists();
-      waslocked = checkLock();
+      if (exists = subject.exists()) {
+        lastStat = getStat(subject);
+        waslocked = false;
+      }
     }
   }