mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 14:45:51 +03:00
Cancel async waits if steam becomes invalid during wait
This commit is contained in:
parent
b6cecf0082
commit
fdee0bfc1e
File diff suppressed because it is too large
Load Diff
@ -114,6 +114,7 @@ void Structs()
|
||||
StartBlock( $"while ( !SteamUtils.IsCallComplete( handle, out failed ) )" );
|
||||
{
|
||||
WriteLine( $"await Task.Delay( 1 );" );
|
||||
WriteLine( $"if ( !SteamClient.IsValid && !SteamServer.IsValid ) return null;" );
|
||||
}
|
||||
EndBlock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user