Skip to content

Commit

Permalink
Fix TriggerEvent.SetCancel
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Sep 3, 2023
1 parent 2294063 commit af2e49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void SetCanceled(CancellationToken cancellationToken)
LogError(ex);
}

iteratingNode = null;
var next = h == iteratingNode ? h.Next : iteratingNode;
iteratingNode = null;
Remove(h);
h = next;
}
Expand Down

0 comments on commit af2e49a

Please sign in to comment.