mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 08:33:23 -05:00
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:
parent
17b1e1a7bf
commit
bccc6da87f
@ -2870,6 +2870,7 @@ daap_deinit(void)
|
|||||||
{
|
{
|
||||||
update_requests = ur->next;
|
update_requests = ur->next;
|
||||||
|
|
||||||
|
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||||
free(ur);
|
free(ur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -653,6 +653,7 @@ dacp_deinit(void)
|
|||||||
{
|
{
|
||||||
update_requests = ur->next;
|
update_requests = ur->next;
|
||||||
|
|
||||||
|
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||||
free(ur);
|
free(ur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user