aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange/taler-exchange-aggregator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index ca7c68df9..6b261662e 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -616,7 +616,7 @@ run_aggregation (void *cls)
session,
&deposit_cb,
au);
- if (GNUNET_OK != ret)
+ if (0 >= ret)
{
if (NULL != au->wire)
json_decref (au->wire);
@@ -624,7 +624,7 @@ run_aggregation (void *cls)
au = NULL;
db_plugin->rollback (db_plugin->cls,
session);
- if (0 != ret)
+ if (GNUNET_SYSERR == ret)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to execute deposit iteration!\n");