Reduce the times of AwakeMonitor checking

master
hadashiA 2023-09-07 10:03:55 +09:00
parent 548d56e654
commit 7fae415689
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ namespace Cysharp.Threading.Tasks.Triggers
public bool MoveNext() public bool MoveNext()
{ {
if (trigger.called) return false; if (trigger.called || trigger.awakeCalled) return false;
if (trigger == null) if (trigger == null)
{ {
trigger.OnDestroy(); trigger.OnDestroy();