mirror of https://github.com/Cysharp/UniTask
OCS
parent
1d88ed85bc
commit
78f56b9b33
|
@ -123,7 +123,14 @@ namespace Cysharp.Threading.Tasks
|
|||
{
|
||||
// setup result
|
||||
this.hasUnhandledError = true;
|
||||
this.error = ExceptionDispatchInfo.Capture(error);
|
||||
if (error is OperationCanceledException)
|
||||
{
|
||||
this.error = error;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.error = ExceptionDispatchInfo.Capture(error);
|
||||
}
|
||||
|
||||
if (continuation != null || Interlocked.CompareExchange(ref this.continuation, UniTaskCompletionSourceCoreShared.s_sentinel, null) != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue