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:
parent
35ecfcd650
commit
b421414e55
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue