Commit 16fcb3af authored by matteobaglini's avatar matteobaglini

Fix: if calls Close or Dispose many times it'll throws a NullReferenceException

parent a92d7ff3
......@@ -19,7 +19,7 @@ partial class ConnectionMultiplexer
partial void OnCloseReaderWriter()
{
if (ownsSocketManager) socketManager.Dispose();
if (ownsSocketManager && socketManager != null) socketManager.Dispose();
socketManager = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment