mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 23:25:55 +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 ) )" );
|
StartBlock( $"while ( !SteamUtils.IsCallComplete( handle, out failed ) )" );
|
||||||
{
|
{
|
||||||
WriteLine( $"await Task.Delay( 1 );" );
|
WriteLine( $"await Task.Delay( 1 );" );
|
||||||
|
WriteLine( $"if ( !SteamClient.IsValid && !SteamServer.IsValid ) return null;" );
|
||||||
}
|
}
|
||||||
EndBlock();
|
EndBlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user