summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_promise.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-26 13:34:04 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-26 13:35:07 -0300
commitb0b8109cd5dbe295f3024b98723336bbb89feda8 (patch)
treeaa198f73ff1ed77f2ebcb3e5bf3a0c227bbad888 /src/lib/eina/eina_promise.c
parentb7cdcff56a6e214ccb70ea761bbbbfdfc24a310a (diff)
eina: Make cancelled promises use EINA_ERROR_PROMISE_CANCELLED error code
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_promise.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index d7b538ea78..2b3f154f7d 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -396,6 +396,7 @@ _eina_promise_cancel(_Eina_Promise_Default* promise)
396 owner->promise.is_cancelled = EINA_TRUE; 396 owner->promise.is_cancelled = EINA_TRUE;
397 owner->promise.has_finished = EINA_TRUE; 397 owner->promise.has_finished = EINA_TRUE;
398 owner->promise.has_errored = EINA_TRUE; 398 owner->promise.has_errored = EINA_TRUE;
399 owner->promise.error = EINA_ERROR_PROMISE_CANCEL;
399 _eina_promise_cancel_calls(owner, EINA_TRUE); 400 _eina_promise_cancel_calls(owner, EINA_TRUE);
400 } 401 }
401} 402}