From b9b8f8e1703cce08d84100d9f3e43a3a0530a2a0 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 26 Apr 2024 16:06:49 +0800 Subject: [PATCH] style code --- .../Runtime/DownloadSystem/Requester/FileGeneralRequest.cs | 3 ++- .../Runtime/DownloadSystem/Requester/FileResumeRequest.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileGeneralRequest.cs b/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileGeneralRequest.cs index d9a2698..11d49f9 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileGeneralRequest.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileGeneralRequest.cs @@ -99,7 +99,8 @@ namespace YooAsset { if (_webRequest != null) { - _webRequest.Dispose(); //注意:引擎底层会自动调用Abort方法 + //注意:引擎底层会自动调用Abort方法 + _webRequest.Dispose(); _webRequest = null; } } diff --git a/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileResumeRequest.cs b/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileResumeRequest.cs index 103066f..0936a46 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileResumeRequest.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/Requester/FileResumeRequest.cs @@ -142,6 +142,7 @@ namespace YooAsset if (_webRequest != null) { + //注意:引擎底层会自动调用Abort方法 _webRequest.Dispose(); _webRequest = null; }