diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs index 2921087..0b817fe 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs @@ -86,8 +86,8 @@ namespace Cysharp.Threading.Tasks LogError(ex); } - iteratingNode = null; var next = h == iteratingNode ? h.Next : iteratingNode; + iteratingNode = null; Remove(h); h = next; }