1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,6 +279,7 @@ namespace CryptoExchange.Net.Sockets
}
}
_socket?.Dispose();
_socket = CreateSocket();
_ctsSource.Dispose();
_ctsSource = new CancellationTokenSource();