Fix stream and socket handling.

This commit is contained in:
Christian
2018-03-29 22:12:23 +02:00
parent fcf748e980
commit cea984cc2f
10 changed files with 171 additions and 29 deletions
@@ -96,8 +96,17 @@ namespace MQTTnet.Implementations
public void Dispose()
{
_webSocket?.Dispose();
_webSocket = null;
try
{
_webSocket?.Dispose();
}
catch (ObjectDisposedException)
{
}
finally
{
_webSocket = null;
}
}
}
}