mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 20:48:03 +03:00
Fix race condition with async callresults
This commit is contained in:
parent
950b256c27
commit
384cbf6b4c
@ -35,6 +35,9 @@ namespace Steamworks
|
|||||||
/// </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…
x
Reference in New Issue
Block a user