refactor : wait for sync complete

This commit is contained in:
何冠峰
2024-12-10 16:48:08 +08:00
parent 9bc0577423
commit acf2301028
6 changed files with 25 additions and 21 deletions

View File

@@ -147,7 +147,7 @@ namespace YooAsset
// 当执行次数用完时
_whileFrame--;
if (_whileFrame == 0)
if (_whileFrame <= 0)
{
Status = EOperationStatus.Failed;
Error = $"Operation {this.GetType().Name} failed to wait for async complete !";