From 2492ea60c3de6bd833bd21ce651b4e13991a5aaa Mon Sep 17 00:00:00 2001 From: krisrok <3404365+krisrok@users.noreply.github.com> Date: Tue, 20 Dec 2022 13:49:07 +0100 Subject: [PATCH] Adapt invocations to new parameter type --- .../Plugins/UniTask/Runtime/UniTaskCompletionSource.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs index fe93ed6..81afa51 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs @@ -166,7 +166,7 @@ namespace Cysharp.Threading.Tasks } else { - this.error = new ExceptionHolder(ExceptionDispatchInfo.Capture(error)); + this.error = new ExceptionHolder(error); } if (continuation != null || Interlocked.CompareExchange(ref this.continuation, UniTaskCompletionSourceCoreShared.s_sentinel, null) != null) @@ -635,7 +635,7 @@ namespace Cysharp.Threading.Tasks if (UnsafeGetStatus() != UniTaskStatus.Pending) return false; - this.exception = new ExceptionHolder(ExceptionDispatchInfo.Capture(exception)); + this.exception = new ExceptionHolder(exception); return TrySignalCompletion(UniTaskStatus.Faulted); } @@ -820,7 +820,7 @@ namespace Cysharp.Threading.Tasks if (UnsafeGetStatus() != UniTaskStatus.Pending) return false; - this.exception = new ExceptionHolder(ExceptionDispatchInfo.Capture(exception)); + this.exception = new ExceptionHolder(exception); return TrySignalCompletion(UniTaskStatus.Faulted); }