From 71286bd998592eb00434a88505820739bfd09d8b Mon Sep 17 00:00:00 2001 From: pmarguerite Date: Fri, 15 Dec 2006 15:01:43 +0000 Subject: [PATCH] SimpleClient: remove client of the session client list when closing/finalizing (finalizeClient method) added get_session() to retrieve current vamsas session git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@318 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/client/simpleclient/SimpleClient.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java index e66cb51..9af8889 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java @@ -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() */ -- 1.7.10.2