From 8c0df95626248697109e7386e18c52bf01066143 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 3 Nov 2023 16:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3CancellationTokenSource?= =?UTF-8?q?=E9=87=8D=E5=A4=8DDispose=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正CancellationTokenSource重复Dispose问题 --- .../Assets/TEngine/Runtime/Core/Utility/Utility.Http.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/UnityProject/Assets/TEngine/Runtime/Core/Utility/Utility.Http.cs b/UnityProject/Assets/TEngine/Runtime/Core/Utility/Utility.Http.cs index 49c8a6b3..d54579e9 100644 --- a/UnityProject/Assets/TEngine/Runtime/Core/Utility/Utility.Http.cs +++ b/UnityProject/Assets/TEngine/Runtime/Core/Utility/Utility.Http.cs @@ -92,7 +92,6 @@ namespace TEngine { Log.Warning($"HttpPost {unityWebRequest.url} be canceled!"); unityWebRequest.Dispose(); - cts.Dispose(); return string.Empty; } } @@ -102,14 +101,12 @@ namespace TEngine { Log.Warning("HttpPost Timeout"); unityWebRequest.Dispose(); - cts.Dispose(); return string.Empty; } } string ret = unityWebRequest.downloadHandler.text; unityWebRequest.Dispose(); - cts.Dispose(); return ret; } }