commit 3bb7e18d46db9a8f59fedb533dd1e4e7c6d4afc1
parent 673693e28b5f02dce6b84df04f2595b9ede69576
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 14 Feb 2026 21:46:48 +0100
fix #11058
Diffstat:
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/contrib/Makefile.am.in b/contrib/Makefile.am.in
@@ -1,5 +1,7 @@
# This file is in the public domain.
+SUBDIRS = typst .
+
tmplpkgdatadir = $(prefix)/share/taler-merchant/templates/
staticpkgdatadir = $(prefix)/share/taler-merchant/static/
spapkgdatadir = $(prefix)/share/taler-merchant/spa/
diff --git a/src/backend/taler-merchant-httpd_private-get-statistics-report-transactions.c b/src/backend/taler-merchant-httpd_private-get-statistics-report-transactions.c
@@ -727,6 +727,11 @@ TMH_private_get_statistics_report_transactions (
.data = root
};
+ GNUNET_CONTAINER_DLL_insert (rctx_head,
+ rctx_tail,
+ rctx);
+ rctx->suspended = GNUNET_YES;
+ MHD_suspend_connection (connection);
rctx->tc = TALER_MHD_typst (TMH_cfg,
false, /* remove on exit */
"merchant",
@@ -737,6 +742,12 @@ TMH_private_get_statistics_report_transactions (
json_decref (root);
if (NULL == rctx->tc)
{
+ GNUNET_CONTAINER_DLL_remove (rctx_head,
+ rctx_tail,
+ rctx);
+ rctx->suspended = GNUNET_NO;
+ MHD_resume_connection (rctx->hc->connection);
+ TALER_MHD_daemon_trigger ();
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Client requested PDF, but Typst is unavailable\n");
return TALER_MHD_reply_with_error (
@@ -745,11 +756,6 @@ TMH_private_get_statistics_report_transactions (
TALER_EC_EXCHANGE_GENERIC_NO_TYPST_OR_PDFTK,
NULL);
}
- GNUNET_CONTAINER_DLL_insert (rctx_head,
- rctx_tail,
- rctx);
- rctx->suspended = GNUNET_YES;
- MHD_suspend_connection (connection);
return MHD_YES;
}
} /* end switch */