Merge pull request #472 from MadrMan/master

Fix race condition with async callresults
This commit is contained in:
Garry Newman 2020-09-04 10:22:50 +01:00 committed by GitHub
commit 8d25edf498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,10 @@ public CallResult( SteamAPICall_t call, bool server )
/// </summary>
public void OnCompleted( Action continuation )
{
Dispatch.OnCallComplete<T>( call, continuation, server );
if (IsCompleted)
continuation();
else
Dispatch.OnCallComplete<T>(call, continuation, server);
}
/// <summary>