diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-12-18 11:59:57 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-12-18 19:54:31 +0900 |
commit | a90746378d3c3a0a5201aa4a4e83bf2746721c24 (patch) | |
tree | 3ec8a9112a81b963c4bbe8ff458130afc304112e | |
parent | 784a5b56a3c798e5a8081e2ce30c79cd8ef7b326 (diff) | |
download | efl-a90746378d3c3a0a5201aa4a4e83bf2746721c24.tar.gz |
ecore_con: Avoid safety errors when closing http
When setting EOS on the dialoer, it's possible that it will also get
automatically closed (by a callback). This results in safety check error
messages, while everything is fine (at least I believe it is).
-rw-r--r-- | src/lib/ecore_con/efl_net_dialer_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c index 3dbaff8a9b..e72575f5c0 100644 --- a/src/lib/ecore_con/efl_net_dialer_http.c +++ b/src/lib/ecore_con/efl_net_dialer_http.c @@ -325,7 +325,8 @@ _efl_net_dialer_http_curlm_check(Efl_Net_Dialer_Http_Curlm *cm) if (!efl_io_closer_closed_get(dialer)) { efl_io_reader_eos_set(dialer, EINA_TRUE); - efl_io_closer_close(dialer); + if (!efl_io_closer_closed_get(dialer)) + efl_io_closer_close(dialer); } } |