mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Kill update request connections during deinit
Avoid leaving active requests on the HTTP server before shutting it down.
This commit is contained in:
parent
51f879cb32
commit
f6a9e1f7f4
@ -2875,7 +2875,10 @@ daap_deinit(void)
|
||||
update_requests = ur->next;
|
||||
|
||||
if (ur->req->evcon)
|
||||
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||
{
|
||||
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||
evhttp_connection_free(ur->req->evcon);
|
||||
}
|
||||
|
||||
free(ur);
|
||||
}
|
||||
|
@ -1705,7 +1705,10 @@ dacp_deinit(void)
|
||||
update_requests = ur->next;
|
||||
|
||||
if (ur->req->evcon)
|
||||
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||
{
|
||||
evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL);
|
||||
evhttp_connection_free(ur->req->evcon);
|
||||
}
|
||||
|
||||
free(ur);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user