VamsasSession: fixed incorrectly stopping the EventGeneratorThread
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / VamsasSession.java
index dcffe57..5714bcd 100644 (file)
@@ -228,7 +228,7 @@ public class VamsasSession {
    * make a new watcher object for the clientFile
    * @return new ClientFile watcher instance
    */
-  public FileWatcher getClientWatcher() {
+ public FileWatcher getClientWatcher() {
     return new FileWatcher(clist.sessionFile);
   }
   /**
@@ -536,11 +536,14 @@ public class VamsasSession {
        //         client.evgen._raise(Events.DOCUMENT_FINALIZEAPPDATA, null, client,null);
 
            //   /  }
-                log.debug("Stopping EventGenerator..");
-                client.evgen.stopWatching();
+         
           }
+          log.debug("Stopping EventGenerator..");
+          client.evgen.stopWatching();
+        
           watcher.setHandler(null);//Do not check if the client is the last client. watcher will shutdown anyway
-         
+        //  watcher.haltWatch();
+         // watcher.
           return false;
         }
       }