diff --git a/src/stream_interface.c b/src/stream_interface.c index 3a5a39f23..73d9d4f8e 100644 --- a/src/stream_interface.c +++ b/src/stream_interface.c @@ -1214,7 +1214,8 @@ int si_cs_recv(struct conn_stream *cs) flags | (co_data(ic) ? CO_RFL_BUF_WET : 0) | ((channel_recv_limit(ic) < b_size(&ic->buf)) ? CO_RFL_KEEP_RSV : 0)); - if (cs->flags & CS_FL_RCV_MORE) + + if (b_data(&ic->buf) && (cs->flags & CS_FL_RCV_MORE)) si_rx_room_blk(si); if (cs->flags & CS_FL_READ_PARTIAL) {