1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 02:13:01 +00:00
This commit is contained in:
JKorf
2022-06-12 15:35:35 +02:00
parent ca888d8e41
commit 2cf3c93e5e
5 changed files with 18 additions and 5 deletions
@@ -31,7 +31,7 @@ namespace CryptoExchange.Net.Sockets
private readonly IDictionary<string, string> cookies;
private readonly IDictionary<string, string> headers;
private CancellationTokenSource _ctsSource;
private ApiProxy _proxy;
private ApiProxy? _proxy;
private readonly List<DateTime> _outgoingMessages;
private DateTime _lastReceivedMessagesUpdate;
@@ -342,7 +342,8 @@ namespace CryptoExchange.Net.Sockets
while (_sendBuffer.TryDequeue(out _)) { } // Clear send buffer
_socket = CreateSocket();
SetProxy(_proxy);
if (_proxy != null)
SetProxy(_proxy);
_closed = false;
}