efl_net_dialer_http: fix reference check.

With the last patch to fix delete-from-curl callback it went too much,
considering it was always dead (in the test scenario it was, so it was
"right"), but broke normal cases.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-12-12 03:16:07 -02:00
parent 633ec445b8
commit d52daf8dd7
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ _efl_net_dialer_http_curl_safe_end(Eo *o, Efl_Net_Dialer_Http_Data *pd, CURL *ea
int refs;
refs = efl_ref_get(o);
if (refs > 2)
if (refs >= 2)
{
pd->in_curl_callback--;
efl_unref(o);