What the hell was I on?

This commit is contained in:
Andrea Shepard 2014-01-22 02:50:40 -08:00
parent 9740a07b8c
commit 5a24ff0563

View File

@ -2263,7 +2263,8 @@ channel_flush_some_cells(channel_t *chan, ssize_t num_cells)
/* Now process the queue if necessary */
if (q_len_after > q_len_before && num_cells < flushed) {
if ((q_len_after > q_len_before) &&
(unlimited || (flushed < num_cells))) {
flushed += channel_flush_some_cells_from_outgoing_queue(chan,
(unlimited ? -1 : num_cells - flushed));
}