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,7 +35,10 @@ namespace Steamworks
|
|||||||
/// </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…
x
Reference in New Issue
Block a user