This commit is contained in:
hevinci
2023-10-10 11:59:56 +08:00
parent a25d03f073
commit b3a135e1a2
2 changed files with 6 additions and 5 deletions
@@ -59,16 +59,15 @@ namespace YooAsset
break;
var operation = _operations[i];
if (operation.IsDone == false)
operation.Update();
if (operation.IsDone)
{
// 注意:如果业务端发生异常,保证异步操作提前移除。
_operations.RemoveAt(i);
operation.SetFinish();
}
else
{
operation.Update();
}
}
}
@@ -116,7 +115,6 @@ namespace YooAsset
_newList.Add(operation);
operation.SetPackageName(packageName);
operation.SetStart();
operation.Start();
}
}
}