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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user