mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Merge pull request #472 from MadrMan/master
Fix race condition with async callresults
This commit is contained in:
commit
8d25edf498
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user