update operation system

pull/189/head
hevinci 2023-09-26 18:58:39 +08:00
parent f804e8405e
commit bae55ca511
1 changed files with 1 additions and 1 deletions

View File

@ -95,9 +95,9 @@ namespace YooAsset
internal void SetFinish() internal void SetFinish()
{ {
Progress = 1f; Progress = 1f;
_callback?.Invoke(this); //注意如果完成回调内发生异常会导致Task无限期等待
if (_taskCompletionSource != null) if (_taskCompletionSource != null)
_taskCompletionSource.TrySetResult(null); _taskCompletionSource.TrySetResult(null);
_callback?.Invoke(this);
} }
internal void SetStart() internal void SetStart()
{ {