Cancel async waits if steam becomes invalid during wait

This commit is contained in:
Garry Newman 2019-05-13 13:13:12 +01:00
parent b6cecf0082
commit fdee0bfc1e
2 changed files with 191 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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();