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