1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 18:33:06 +00:00

Socket connection improvements on reconnect

This commit is contained in:
JKorf
2024-03-28 20:35:49 +01:00
parent e62786a70f
commit b90a0a71e9
2 changed files with 17 additions and 3 deletions
@@ -714,6 +714,12 @@ namespace CryptoExchange.Net.Sockets
return new CallResult(new InvalidOperationError(info));
}
if (!_socket.IsOpen)
{
_logger.LogWarning("[Sckt {SocketId}] msg {RequestId} - Failed to send, socket no longer open", SocketId, requestId);
return new CallResult(new WebError("Failed to send message, socket no longer open"));
}
_logger.SendingData(SocketId, requestId, data);
try
{