From 7432c0073a000712f29d9fdf66816cbc8437a4dd Mon Sep 17 00:00:00 2001 From: hikari Date: Mon, 24 Aug 2020 17:10:26 +0900 Subject: [PATCH] Fix ToCancellationToken linkToken --- .../Plugins/UniTask/Runtime/CancellationTokenExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenExtensions.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenExtensions.cs index c139acc..6575432 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenExtensions.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenExtensions.cs @@ -33,7 +33,7 @@ namespace Cysharp.Threading.Tasks var cts = new CancellationTokenSource(); ToCancellationTokenCore(task, cts).Forget(); - return CancellationTokenSource.CreateLinkedTokenSource(linkToken).Token; + return CancellationTokenSource.CreateLinkedTokenSource(cts.Token, linkToken).Token; } public static CancellationToken ToCancellationToken(this UniTask task)