Skip to content

Commit feb598d

Browse files
author
Hubert Plociniczak
committed
Terminate also the main loop when receiving CloseOk to avoid race-conditions.
1 parent e6e2d19 commit feb598d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/impl/ConnectionBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ public void ClosingLoop()
751751

752752
public void NotifyReceivedClose()
753753
{
754+
TerminateMainloop();
754755
closed = true;
755756
m_frameHandler.Close();
756757
}

0 commit comments

Comments
 (0)