summaryrefslogtreecommitdiff
path: root/src/auditordb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-15 21:22:44 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-15 21:22:44 +0200
commit8f0a4b6095fd05e101fc5389cc46ec211083979a (patch)
treec6aa6ef9f8bb7d7d9b573fe313de6b0b3f7be6df /src/auditordb
parent6cabb25d8d780949459382661fb318c32d76f992 (diff)
downloadexchange-8f0a4b6095fd05e101fc5389cc46ec211083979a.tar.gz
exchange-8f0a4b6095fd05e101fc5389cc46ec211083979a.tar.bz2
exchange-8f0a4b6095fd05e101fc5389cc46ec211083979a.zip
fix #6133: enable nice shutdown of auditor helpers with CTRL-C
Diffstat (limited to 'src/auditordb')
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 4f9101fd..e10df29d 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -1236,9 +1236,11 @@ deposit_confirmation_cb (void *cls,
return;
}
dcc->qs = i + 1;
- dcc->cb (dcc->cb_cls,
- serial_id,
- &dc);
+ if (GNUNET_OK !=
+ dcc->cb (dcc->cb_cls,
+ serial_id,
+ &dc))
+ break;
}
}