Reduce the times of AwakeMonitor checking
parent
548d56e654
commit
7fae415689
|
@ -83,7 +83,7 @@ namespace Cysharp.Threading.Tasks.Triggers
|
|||
|
||||
public bool MoveNext()
|
||||
{
|
||||
if (trigger.called) return false;
|
||||
if (trigger.called || trigger.awakeCalled) return false;
|
||||
if (trigger == null)
|
||||
{
|
||||
trigger.OnDestroy();
|
||||
|
|
Loading…
Reference in New Issue