1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 10:22:57 +00:00

Added additional checks to not send/expect data when socket is not connected

This commit is contained in:
Jkorf
2021-10-08 13:16:20 +02:00
parent 0bad51d775
commit a969e99e05
4 changed files with 157 additions and 2 deletions
@@ -108,7 +108,7 @@ namespace CryptoExchange.Net.Sockets
/// <summary>
/// If the connection is open
/// </summary>
public bool IsOpen => _socket.State == WebSocketState.Open;
public bool IsOpen => _socket.State == WebSocketState.Open && !_closing;
/// <summary>
/// Ssl protocols supported. NOT USED BY THIS IMPLEMENTATION