mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -05:00
Revert "Add a fail_cb to evhttp_request for connection failures"
The fail_cb extension was actually never needed; we've migrated away from it, so let's clean that up now. This reverts commit 1ffcbdae274fe71eeda14806764df0c40e45a636.
This commit is contained in:
parent
18abda3a97
commit
2dde2f180d
@ -232,9 +232,6 @@ struct {
|
|||||||
void (*cb)(struct evhttp_request *, void *);
|
void (*cb)(struct evhttp_request *, void *);
|
||||||
void *cb_arg;
|
void *cb_arg;
|
||||||
|
|
||||||
void (*fail_cb)(struct evhttp_request *, void *);
|
|
||||||
void *fail_cb_arg;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Chunked data callback - call for each completed chunk if
|
* Chunked data callback - call for each completed chunk if
|
||||||
* specified. If not specified, all the data is delivered via
|
* specified. If not specified, all the data is delivered via
|
||||||
|
@ -654,11 +654,7 @@ evhttp_connection_fail(struct evhttp_connection *evcon,
|
|||||||
* reply before the connection can be freed.
|
* reply before the connection can be freed.
|
||||||
*/
|
*/
|
||||||
if (evhttp_connection_incoming_fail(req, error) == -1)
|
if (evhttp_connection_incoming_fail(req, error) == -1)
|
||||||
{
|
evhttp_connection_free(evcon);
|
||||||
if (req->fail_cb)
|
|
||||||
req->fail_cb(req, req->fail_cb_arg);
|
|
||||||
evhttp_connection_free(evcon);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user