ecore: during shutdown their is no need to delay anything.

This commit is contained in:
Cedric BAIL 2018-05-23 19:37:20 -07:00
parent 38d8b615c8
commit b59911d5af
1 changed files with 14 additions and 3 deletions

View File

@ -133,9 +133,20 @@ _efl_io_copier_job_schedule(Eo *o, Efl_Io_Copier_Data *pd)
{ {
if (pd->job) return; if (pd->job) return;
efl_future_Eina_FutureXXX_then(o, efl_loop_job(efl_loop_get(o)), // When invalidated, no need to delay action
.success = _efl_io_copier_job, if (efl_invalidated_get(o))
.storage = &pd->job); {
Eina_Value v = EINA_VALUE_EMPTY;
v = _efl_io_copier_job(o, v);
eina_value_flush(&v);
}
else
{
efl_future_Eina_FutureXXX_then(o, efl_loop_job(efl_loop_get(o)),
.success = _efl_io_copier_job,
.storage = &pd->job);
}
} }
/* NOTE: the returned slice may be smaller than requested since the /* NOTE: the returned slice may be smaller than requested since the