mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +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>
|
/// </summary>
|
||||||
public void OnCompleted( Action continuation )
|
public void OnCompleted( Action continuation )
|
||||||
{
|
{
|
||||||
Dispatch.OnCallComplete<T>( call, continuation, server );
|
if (IsCompleted)
|
||||||
|
continuation();
|
||||||
|
else
|
||||||
|
Dispatch.OnCallComplete<T>(call, continuation, server);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user