Fix: flt.utils.muxer: reset is_ended variable after each iteration
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 7 Mar 2019 19:35:15 +0000 (14:35 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit6bf2abbd799ec2be5cb591176f07e7f7019a079b
tree306885a6850f7331ca513f07c1939a5d3a4e59f0
parenta5bc50e4b801a35b27b5c1ed9423cd543f54b52a
Fix: flt.utils.muxer: reset is_ended variable after each iteration

Problem
-------
Whenever an upstream message iterator returns STATUS_END, we remove it
from the array used to order the messages. The variable `is_ended` is
used to record if a upstream message iterator is ended and must be
removed. This variable is only set to false _before_ the loop. If the
first upstream message iterator in the array needs to be removed, all
the following iterators will be mistakenly removed.

Solution
--------
The `is_ended` variable must be reset to false at each iteration so that
only the upstream message iterator that is actually ended is removed from
the array.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/utils/muxer/muxer.c
This page took 0.024969 seconds and 4 git commands to generate.