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