You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove redundant awaitingFinalEvent clear and clarify counter logic
The awaitingFinalEvent flag is already cleared in internalEnqueueItem
when the final event arrives in the MainQueue. The dequeue-side clearing
in ChildQueue.dequeueEventItem was a redundant no-op on the normal path
and has been removed to avoid misleading future maintainers.
Also clarifies the pollTimeoutsWhileAwaitingFinal reset logic in
EventConsumer by documenting all three cases of the if/else-if block:
- awaitingFinal && queueSize == 0: increment counter, give up at MAX
- awaitingFinal && queueSize > 0: implicit fall-through, do nothing
- !awaitingFinal: reset counter (distinct from the successful-dequeue reset)
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
0 commit comments