ecore: make call to future_get and value_set irrelevant as they should be.

This commit is contained in:
Cedric BAIL 2016-11-03 18:01:43 -07:00
parent a7ff7ceebb
commit 59a635d251
1 changed files with 9 additions and 0 deletions

View File

@ -525,6 +525,15 @@ _efl_promise_future_get(Eo *obj, Efl_Promise_Data *pd EINA_UNUSED)
fd->promise = efl_data_xref(obj, EFL_PROMISE_CLASS, f);
fd->promise->futures = eina_list_append(fd->promise->futures, fd);
// The promise has already been fullfilled, prepare the propagation
if (fd->promise->message)
{
fd->message = fd->promise->message;
EINA_REFCOUNT_REF(fd->message);
_efl_loop_future_propagate(f, fd);
}
return f;
}