Quobject/EngineIoClientDotNet

WebSocket_netcore45.cs - DoClose exception

LostLogic opened this issue · 1 comments

DoClose can be called before datawriter is set. By calling dataWriter.Disposed() a null reference exception is triggered.

Recommend a null check before disposing and setting it to null:
if (dataWriter != null)
{
dataWriter.Dispose();
dataWriter = null;
}

Line 265

Fixed in 0.9.10.