Skip to content

Commit

Permalink
issue: 425607 deleting ClientSession on C side only after session tea…
Browse files Browse the repository at this point in the history
…rdown was received

Change-Id: Ib99fdc0b66aef109c413416d17d2ac8b6877ca9e
  • Loading branch information
Katya Katsenelenbogen committed Sep 22, 2014
1 parent 2c30619 commit cfe231e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/java/com/mellanox/jxio/ClientSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,19 @@ 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;

// Internal event
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:
Expand Down

0 comments on commit cfe231e

Please sign in to comment.