commit 7f733a4db5c7bb4e15bb759f403aff045dcae654 parent ba169a4db56f209440f08fac111244d86557c121 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 12 Jul 2026 09:37:57 +0200 do not die if webhook is added while we have some in flight Diffstat:
| M | src/backend/taler-merchant-webhook.c | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c @@ -388,8 +388,11 @@ db_notify (void *cls, (void) extra; (void) extra_size; - GNUNET_assert (NULL != task); - GNUNET_SCHEDULER_cancel (task); + if (NULL != w_head) + return; /* a batch is in flight; handle_webhook_response() will + re-select once it drains */ + if (NULL != task) + GNUNET_SCHEDULER_cancel (task); task = GNUNET_SCHEDULER_add_now (&select_work, NULL); }