Fix bug in driver

This commit is contained in:
2023-04-10 16:23:31 -04:00
parent ac383c616f
commit 005ce0629e
3 changed files with 5 additions and 5 deletions

View File

@@ -444,6 +444,9 @@ class Driver {
bool any_released = false;
for (ChanInfo &chan : chans_) {
engw.get_outgoing(&engw, chan.chid, &chan.nbytes, &chan.bytes);
if (chan.nbytes > 0) {
chan.need_advance = true;
}
if (chan.nbytes == 0) {
if (engw.get_channel_released(&engw, chan.chid)) {
close_channel(chan, "");