Commit 7c85913a authored by Marc Gravell's avatar Marc Gravell

Merge pull request #3 from matteobaglini/master

Fix: if calls Close or Dispose many times it'll throws a NullReferenceException
parents 0410468b 16fcb3af
......@@ -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