Fix a bug in the driver, closing channel too soon
This commit is contained in:
@@ -449,8 +449,10 @@ class Driver {
|
||||
}
|
||||
if (chan.nbytes == 0) {
|
||||
if (engw.get_channel_released(&engw, chan.chid)) {
|
||||
close_channel(chan, "");
|
||||
any_released = true;
|
||||
if (BIO_pending(chan.send_bio) == 0) {
|
||||
close_channel(chan, "");
|
||||
any_released = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user