mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-11-04 09:17:53 +00:00
Fixed socket cleanup after connection failures (#301)
This commit is contained in:
@@ -899,6 +899,8 @@ namespace CryptoExchange.Net.Clients
|
||||
return connectResult;
|
||||
}
|
||||
|
||||
// Remove the connection and stop any reconnect processing before disposing it.
|
||||
await socketConnection.CloseAsync().ConfigureAwait(false);
|
||||
socketConnection.Dispose();
|
||||
return connectResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user