ecore: do not trigger future,none once value/cancel has been set.

This would have forced who ever used future,none signal to manually
filter out event triggered by all the future beeing fullfiled and
disconnecting once they receive a value or are marked failed.
This commit is contained in:
Cedric Bail 2016-09-15 21:43:47 -07:00
parent 35ecfcd650
commit b421414e55
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ _efl_loop_future_disconnect(Eo *obj, Efl_Loop_Future_Data *pd)
pd->promise->futures = eina_list_remove(pd->promise->futures, pd);
// Notify that there is no more future
if (!pd->promise->futures)
if (!pd->promise->futures &&
!pd->promise->message)
{
efl_event_callback_call(pd->promise->promise, EFL_PROMISE_EVENT_FUTURE_NONE, NULL);
}