diff options
author | Guilherme Iscaro <iscaro@profusion.mobi> | 2017-07-28 15:22:07 -0300 |
---|---|---|
committer | Guilherme Iscaro <iscaro@profusion.mobi> | 2017-07-28 15:22:51 -0300 |
commit | ef03ecd89ca8206b61e028752ac567036c1150cf (patch) | |
tree | 6239bf76a5e5c8de8624a410d88681fd95d72bed | |
parent | 493f75587d3ff0dd5a5689efc0de72c047bcf5ac (diff) | |
download | efl-devs/derekf/for_apb.tar.gz |
Ecore_Con: Fix wrong comparison.devs/derekf/for_apb
Otherwise it will always evaluate to false.
-rw-r--r-- | src/lib/ecore_con/ecore_con_url.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c index 8c03176738..39412d7f83 100644 --- a/src/lib/ecore_con/ecore_con_url.c +++ b/src/lib/ecore_con/ecore_con_url.c @@ -348,7 +348,7 @@ _ecore_con_url_dialer_error(void *data, const Efl_Event *event) int status; status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ @@ -655,7 +655,7 @@ _ecore_con_url_copier_error(void *data, const Efl_Event *event) int status; status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ @@ -1337,7 +1337,7 @@ _ecore_con_url_timeout_cb(void *data) WRN("HTTP timeout url='%s'", efl_net_dialer_address_dial_get(url_con->dialer)); status = efl_net_dialer_http_response_status_get(url_con->dialer); - if ((status < 500) && (status > 599)) + if ((status < 500) || (status > 599)) { DBG("HTTP error %d reset to 1", status); status = 1; /* not a real HTTP error */ |