forked from enlightenment/efl
eina: Eina_Future as Eina_Value can also be cancelled.
This commit is contained in:
parent
2733277b2a
commit
90c2e05788
|
@ -643,6 +643,8 @@ _future_proxy(void *data, const Eina_Value v,
|
|||
const Eina_Future *dead_future EINA_UNUSED)
|
||||
{
|
||||
Eina_Value copy = EINA_VALUE_EMPTY;
|
||||
|
||||
if (eina_value_type_get(&v) == EINA_VALUE_TYPE_ERROR) return v;
|
||||
//We're in a safe context (from mainloop), so we can avoid scheduling a new dispatch
|
||||
if (!v.type || !memcmp(&v, ©, sizeof (Eina_Value))) copy = v;
|
||||
else if (!eina_value_copy(&v, ©))
|
||||
|
|
Loading…
Reference in New Issue