VamsasSession: fixed incorrectly stopping the EventGeneratorThread
authorpmarguerite <pmarguerite@issues.jalview.org>
Fri, 18 May 2007 15:14:51 +0000 (15:14 +0000)
committerpmarguerite <pmarguerite@issues.jalview.org>
Fri, 18 May 2007 15:14:51 +0000 (15:14 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@396 be28352e-c001-0410-b1a7-c7978e42abec

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;
         }
       }