Set closecb to NULL on update requests' connections at deinit

Otherwise the closecb is called when the connection is closed/freed during
deinit, and this happens in the HTTP cleanup after the DAAP and DACP cleanups
have run, leading to spurious "struct update_request not found" messages.
This commit is contained in:
Julien BLACHE 2010-04-12 18:40:24 +02:00
parent 17b1e1a7bf
commit bccc6da87f
2 changed files with 2 additions and 0 deletions

View File

@ -2870,6 +2870,7 @@ daap_deinit(void)
{
update_requests = ur->next;
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
free(ur);
}
}

View File

@ -653,6 +653,7 @@ dacp_deinit(void)
{
update_requests = ur->next;
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
free(ur);
}
}