We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f127b80 commit 0a1b70dCopy full SHA for 0a1b70d
src/NetMQ/Core/Transports/StreamEngine.cs
@@ -323,7 +323,7 @@ private void Error()
323
m_state = State.Error;
324
m_socket.EventDisconnected(m_endpoint, m_handle);
325
m_session.Flush();
326
- m_session.Detach(m_state != State.Handshaking && m_mechanism.Status != MechanismStatus.Handshaking );
+ m_session.Detach(m_state != State.Handshaking && (m_mechanism is null || m_mechanism.Status != MechanismStatus.Handshaking) );
327
Unplug();
328
Destroy();
329
}
0 commit comments