mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 12:38:00 +03:00
Fix race condition with async callresults
This commit is contained in:
parent
950b256c27
commit
384cbf6b4c
@ -35,7 +35,10 @@ namespace Steamworks
|
||||
/// </summary>
|
||||
public void OnCompleted( Action continuation )
|
||||
{
|
||||
Dispatch.OnCallComplete<T>( call, continuation, server );
|
||||
if (IsCompleted)
|
||||
continuation();
|
||||
else
|
||||
Dispatch.OnCallComplete<T>(call, continuation, server);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user