changed semaphore implementation and session modified flag.
[vamsas.git] / src / org / vamsas / client / simpleclient / SimpleClient.java
index daf3ca5..0445e2a 100644 (file)
@@ -254,7 +254,7 @@ public class SimpleClient implements IClient {
     // Events.DOCUMENT_FINALIZEAPPDATA
     try {
       _session.writeVamsasDocument(location, vamlock);
-      _session.updateLastStoredStat();
+      _session.clearUnsavedFlag();
     } catch (Exception e) {
       log.warn("Exception whilst trying to store document in "+location,e);
     }
@@ -322,7 +322,7 @@ public class SimpleClient implements IClient {
       throw new Exception("Failed to start event generator thread - client cannot be instantiated.");
     }
     if (evgen.countHandlersFor(Events.DOCUMENT_CREATE)>0) {
-      //TODO: check vamsas document for presence of an AppData entry for this application
+      //TODO: is this application connecting to a newly created session document ?
       //evgen.raise(Events.DOCUMENT_CREATE);
     }
   }