From bae55ca511b2f46bc3fd1847bb7e29d2441053a7 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 26 Sep 2023 18:58:39 +0800 Subject: [PATCH] update operation system --- Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs index d1f80ed..51a1b45 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs @@ -95,9 +95,9 @@ namespace YooAsset internal void SetFinish() { Progress = 1f; + _callback?.Invoke(this); //注意:如果完成回调内发生异常,会导致Task无限期等待 if (_taskCompletionSource != null) _taskCompletionSource.TrySetResult(null); - _callback?.Invoke(this); } internal void SetStart() {