-
Notifications
You must be signed in to change notification settings - Fork 517
Open
Labels
Milestone
Description
Like this:
SteamKit/SteamKit2/SteamKit2/Steam/CMClient.cs
Lines 191 to 197 in 9811319
connectionSetupTask = recordTask.ContinueWith( t => | |
{ | |
if ( token.IsCancellationRequested ) | |
{ | |
LogDebug( nameof( CMClient ), "Connection cancelled before a server could be chosen." ); | |
OnClientDisconnected( userInitiated: true ); | |
return; |
This bypasses the normal Disconnect
call which means some of the objects like connectionCancellation
linger around. There's a call to Disconnect() in Connect, so there's no blocking, but if there wasn't it would just crash.
Not really sure what's a clean way to fix this up because Disconnect joins connectionSetupTask
, so it would just dead lock.