Commit 6d11353d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_destroy): Inform the write change callback function of changes in

	the pending output queue size.
parent 470346ae
......@@ -322,6 +322,7 @@ isc_destroy(struct isc_mcb *mcb,
{
struct isc_scb_internal *sci = (struct isc_scb_internal*)scb;
int code = 0;
int size;
isc_cancel_read_callback(sci);
isc_cancel_stale_output_callback(sci);
......@@ -366,7 +367,11 @@ isc_destroy(struct isc_mcb *mcb,
}
if (sci->wr_msg_q)
isc_killqueue(sci->wr_msg_q);
{
size = isc_killqueue(sci->wr_msg_q);
if (mcb->write_change_cb)
mcb->write_change_cb(-size);
}
isc_free(scb);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment