From cfe231e6af8f887ebbe03c26415e301f40c57810 Mon Sep 17 00:00:00 2001 From: Katya Katsenelenbogen Date: Mon, 22 Sep 2014 12:00:54 +0300 Subject: [PATCH] issue: 425607 deleting ClientSession on C side only after session teardown was received Change-Id: Ib99fdc0b66aef109c413416d17d2ac8b6877ca9e --- src/java/com/mellanox/jxio/ClientSession.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/com/mellanox/jxio/ClientSession.java b/src/java/com/mellanox/jxio/ClientSession.java index 10b87c4..2493f24 100644 --- a/src/java/com/mellanox/jxio/ClientSession.java +++ b/src/java/com/mellanox/jxio/ClientSession.java @@ -248,9 +248,11 @@ boolean onEvent(Event ev) { case SESSION_REJECT: eqh.removeEventable(this); + Bridge.deleteClient(this.getId()); + this.setIsClosing(true); + break; case SESSION_CLOSED: - Bridge.deleteClient(this.getId()); this.setIsClosing(true); break; @@ -258,6 +260,7 @@ boolean onEvent(Event ev) { case SESSION_TEARDOWN: // now we are officially done with this session and it can be deleted from the EQH eqh.removeEventable(this); + Bridge.deleteClient(this.getId()); return false; default: