SimpleClient: remove client of the session client list when closing/finalizing (final...
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / SimpleClient.java
index e66cb51..9af8889 100644 (file)
@@ -217,6 +217,7 @@ public class SimpleClient implements IClient {
     // if (handlers.containsKey(Events.CLIENT_FINALIZATION))
     // deregister listeners.
     // mark this instance as finalized
+    this._session.removeClient(this);
   }
   
   /*
@@ -416,6 +417,14 @@ public class SimpleClient implements IClient {
     
   }
 
+  /**
+   * retrieves the current VamsasSession to which belong the client
+   * @return the _session
+   */
+  protected VamsasSession get_session() {
+    return this._session;
+  }
+
   /* (non-Javadoc)
    * @see uk.ac.vamsas.client.IClient#getPickManager()
    */