From f47e57afe7611718d97f70ec46a303f9b377f0f5 Mon Sep 17 00:00:00 2001 From: pmarguerite Date: Thu, 4 Jan 2007 15:45:53 +0000 Subject: [PATCH] when closing session, closes each associated VAMAV clients git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@329 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/client/simpleclient/VamsasSession.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java b/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java index 0fc3bd3..5b8875c 100644 --- a/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java +++ b/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java @@ -355,15 +355,15 @@ public class VamsasSession { { if (client == null) { + System.out.println("Try to remove a null client."); this.slog.error("Try to remove a null client."); return; } this.clist.removeClient(client.getClientHandle(), getClientWatcher().getChangedState()); if (this.clist.retrieveClientList() == null|| this.clist.retrieveClientList().length<1) {//assume it is the last client has been removed shutting down session - System.out.println("last client removed: removing session"); - this.getSessionManager().removeSession(client.getSessionHandle()); - + System.out.println("last client removed: removing session"); + this.getSessionManager().removeSession(client.getSessionHandle()); } else { -- 1.7.10.2