Reduce the times of AwakeMonitor checking

This commit is contained in:
hadashiA
2023-09-07 10:03:55 +09:00
parent 548d56e654
commit 7fae415689

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();