Update DownloadCenterOperation.cs

This commit is contained in:
何冠峰
2025-07-22 10:11:22 +08:00
parent bfd476d59c
commit 1801974c8a

View File

@@ -42,7 +42,11 @@ namespace YooAsset
// 移除下载器 // 移除下载器
foreach (var key in _removeList) foreach (var key in _removeList)
{ {
_downloaders.Remove(key); if (_downloaders.TryGetValue(key, out var downloader))
{
Childs.Remove(downloader);
_downloaders.Remove(key);
}
} }
// 最大并发数检测 // 最大并发数检测