Fix race condition with async callresults

This commit is contained in:
MadrMan 2020-08-16 11:55:43 +02:00
parent 950b256c27
commit 384cbf6b4c

View File

@ -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);
} }