Skip to content

Commit 0c35d23

Browse files
author
Hubert Plociniczak
committed
Always attempt to correctly release the session.
1 parent 31e0bdb commit 0c35d23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client/impl/ModelBase.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,11 @@ public void HandleChannelClose(ushort replyCode,
469469
methodId));
470470

471471
m_session.Close(m_closeReason, false);
472-
_Private_ChannelCloseOk();
473-
m_session.Notify();
472+
try {
473+
_Private_ChannelCloseOk();
474+
} finally {
475+
m_session.Notify();
476+
}
474477
}
475478

476479
public void FinishClose()

0 commit comments

Comments
 (0)