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:
parent
3a43d461a3
commit
fee18fd183
@ -279,6 +279,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_socket?.Dispose();
|
||||||
_socket = CreateSocket();
|
_socket = CreateSocket();
|
||||||
_ctsSource.Dispose();
|
_ctsSource.Dispose();
|
||||||
_ctsSource = new CancellationTokenSource();
|
_ctsSource = new CancellationTokenSource();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user