1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Dispose ClientWebSocket before creating a new (#212)

This commit is contained in:
Jonnern
2024-09-17 11:59:58 +02:00
committed by GitHub
parent 3a43d461a3
commit fee18fd183
@@ -279,6 +279,7 @@ namespace CryptoExchange.Net.Sockets
}
}
_socket?.Dispose();
_socket = CreateSocket();
_ctsSource.Dispose();
_ctsSource = new CancellationTokenSource();