ecore_con: Always get the loop on init
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 18 Dec 2017 03:02:45 +0000 (12:02 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
In case of init/shutdown/init cycles, the loop EO ID has changed, so it
must be fetched again.

src/lib/ecore_con/efl_net_dialer_http.c

index e72575f..99635ff 100644 (file)
@@ -1202,7 +1202,7 @@ _efl_net_dialer_http_curl_start(Eo *o, Efl_Net_Dialer_Http_Data *pd)
    // TODO: move this to be per-loop once multiple mainloops are supported
    // this would need to attach something to the loop
    cm = &_cm_global;
-   if (!cm->loop) cm->loop = efl_loop_get(o);
+   cm->loop = efl_loop_get(o);
    if (!_efl_net_dialer_http_curlm_add(cm, o, pd->easy))
      {
         ERR("dialer=%p could not add curl easy handle to multi manager", o);