diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-07 18:27:48 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-08-07 18:27:48 -0400 |
commit | 5ae7a84af061f814e796f1c8c44df112b2fca007 (patch) | |
tree | 0b3c91eae8bb35ac6f8cde5dc71ae75dbdd7c003 /src/IO | |
parent | aba097ef997ac29b792f1fa7258a09df3a434b77 (diff) |
Added a_Chain_bfcb() to the CCC API (fixed three bugs with it)
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/http.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 32f370b3..c8562fbf 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -473,8 +473,7 @@ void a_Http_dns_cb(int Status, Dlist *addr_list, void *data) S = a_Klist_get_data(ValidSocks, SKey); if (S) { if (!a_Web_valid(S->web)) { - a_Chain_bcb(OpAbort, S->Info, NULL, NULL); - a_Chain_fcb(OpAbort, S->Info, NULL, NULL); + a_Chain_bfcb(OpAbort, S->Info, NULL, "Both"); dFree(S->Info); Http_socket_free(SKey); @@ -484,8 +483,7 @@ void a_Http_dns_cb(int Status, Dlist *addr_list, void *data) /* start connecting the socket */ if (Http_connect_socket(S->Info) < 0) { MSG_BW(S->web, 1, "ERROR: %s", dStrerror(S->Err)); - a_Chain_bcb(OpAbort, S->Info, NULL, NULL); - a_Chain_fcb(OpAbort, S->Info, NULL, NULL); + a_Chain_bfcb(OpAbort, S->Info, NULL, "Both"); dFree(S->Info); Http_socket_free(SKey); } @@ -494,9 +492,7 @@ void a_Http_dns_cb(int Status, Dlist *addr_list, void *data) /* DNS wasn't able to resolve the hostname */ MSG_BW(S->web, 0, "ERROR: Dns can't resolve %s", (S->use_proxy) ? URL_HOST_(HTTP_Proxy) : URL_HOST_(S->web->url)); - a_Chain_bcb(OpAbort, S->Info, NULL, NULL); - S->Info->Flags &= ~CCC_Aborted; - a_Chain_fcb(OpAbort, S->Info, NULL, "Both"); + a_Chain_bfcb(OpAbort, S->Info, NULL, "Both"); dFree(S->Info); Http_socket_free(SKey); } |