diff --git a/src/mux_quic.c b/src/mux_quic.c index 5c39ef757..5d76677e3 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -1536,9 +1536,6 @@ static void _qcc_send_stream(struct qcs *qcs, int urg) LIST_INSERT(&qcc->send_list, &qcs->el_send); } else { - /* Cannot send STREAM if already closed. */ - BUG_ON(qcs_is_close_local(qcs)); - if (!LIST_INLIST(&qcs->el_send)) LIST_APPEND(&qcs->qcc->send_list, &qcs->el_send); } @@ -1598,6 +1595,7 @@ void qcc_send_stream(struct qcs *qcs, int urg, int count) /* Cannot send STREAM if already closed. */ BUG_ON(qcs_is_close_local(qcs)); + _qcc_send_stream(qcs, urg); if (count) {