fix stream-reset command

This commit is contained in:
Christian Giese
2024-02-22 09:38:44 +00:00
parent cbb59bf3ce
commit 2f69df630c
+3 -1
View File
@@ -1459,7 +1459,9 @@ bbl_stream_io_send(io_handle_s *io, bbl_stream_s *stream)
if(unlikely(stream->reset)) {
stream->reset = false;
stream->flow_seq = 1;
stream->max_packets = stream->tx_packets + stream->config->max_packets;
if(stream->max_packets) {
stream->max_packets = stream->tx_packets + stream->config->max_packets;
}
stream->tokens = 0;
return STREAM_WAIT;
}