mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -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:
@@ -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_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_free(ur->req->evcon);
|
||||
}
|
||||
|
||||
free(ur);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user