WatcherElement reference should be nulled by caller of removeClient rather than withi...
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / VamsasSession.java
index 05014ab..497431d 100644 (file)
@@ -385,9 +385,7 @@ public class VamsasSession {
     SessionFileWatcherElement cwe=getClientWatcherElement();
     if (cwe!=null && cwe.isWatchEnabled()) {
       cwe.haltWatch();
-    } else {
-      cwe=null;
-    }
+    };
     clist.removeClient(client.getClientHandle(),null);
     if (this.clist.retrieveClientList() == null|| this.clist.retrieveClientList().length<1)
       {//assume it is the last client has been removed shutting down session