mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 22:55:55 +03:00
Merge pull request #472 from MadrMan/master
Fix race condition with async callresults
This commit is contained in:
commit
8d25edf498
@ -35,6 +35,9 @@ public CallResult( SteamAPICall_t call, bool server )
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void OnCompleted( Action continuation )
|
public void OnCompleted( Action continuation )
|
||||||
{
|
{
|
||||||
|
if (IsCompleted)
|
||||||
|
continuation();
|
||||||
|
else
|
||||||
Dispatch.OnCallComplete<T>(call, continuation, server);
|
Dispatch.OnCallComplete<T>(call, continuation, server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user