summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-05 21:15:24 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-05 21:15:24 -0700
commit382079bccd5c54c3041df25b6555f46cd502c4fc (patch)
treec4285d2c1b6bcb5f50007ce8ffb460642035a3c1 /src/lib/eio/eio_model.c
parent90c2e05788642e3275c33eb2aca0edcbece6f512 (diff)
eio: cancel idler on Eio.Model destruction properly.
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 1191244..b8e8ebf 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -408,8 +408,9 @@ _eio_build_mime_now(void *data, const Eina_Value v, const Eina_Future *dead_futu
408 // Make sure that we are not over consuming time in the main loop 408 // Make sure that we are not over consuming time in the main loop
409 if (delayed_queue || ecore_time_get() - ecore_loop_time_get() > 0.004) 409 if (delayed_queue || ecore_time_get() - ecore_loop_time_get() > 0.004)
410 { 410 {
411 return eina_future_as_value(eina_future_then(_build_delay(pd->loop), 411 Eina_Future *f = eina_future_then(_build_delay(pd->loop),
412 _eio_build_mime_now, model)); 412 _eio_build_mime_now, model);
413 return eina_future_as_value(efl_future_Eina_FutureXXX_then(model, f));
413 } 414 }
414 415
415 pd->mime_type = efreet_mime_type_get(pd->path); 416 pd->mime_type = efreet_mime_type_get(pd->path);