Commit 434feb9c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_set_read_callback): Call isc_cancel_stale_output_callback().

	Removed redundant checks.
(isc_cancel_stale_output_callback): Now extern.
(isc_destroy): Call isc_cancel_stale_output_callback().
parent 3c43fa94
......@@ -219,8 +219,9 @@ isc_set_read_callback(struct isc_scb *scb,
{
struct isc_scb_internal *session = (struct isc_scb_internal*)scb;
if (session->data_available_registered)
isc_cancel_read_callback(session);
isc_cancel_read_callback(session);
isc_cancel_stale_output_callback(session);
session->data_available_callback = data_available_callback;
session->data_available_user = user;
session->write_err_cb = write_error_cb;
......@@ -228,7 +229,7 @@ isc_set_read_callback(struct isc_scb *scb,
isc_check_read_callback(session, 0);
}
static void
void
isc_cancel_stale_output_callback(struct isc_scb_internal *session)
{
oop_source *source = session->pub.master->event_source;
......@@ -323,6 +324,7 @@ isc_destroy(struct isc_mcb *mcb,
int code = 0;
isc_cancel_read_callback(sci);
isc_cancel_stale_output_callback(sci);
isc_cancel_write_callback(sci);
if (mcb)
......
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