gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: add logic to run recovery abort


From: gnunet
Subject: [taler-anastasis] branch master updated: add logic to run recovery abort after all other cleanups
Date: Mon, 30 Nov 2020 22:21:35 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 934fe03  add logic to run recovery abort after all other cleanups
934fe03 is described below

commit 934fe03a70958d874c36eeabdf2aaba7e47ee29f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Nov 30 22:21:33 2020 +0100

    add logic to run recovery abort after all other cleanups
---
 src/lib/testing_cmd_recover_secret.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/lib/testing_cmd_recover_secret.c 
b/src/lib/testing_cmd_recover_secret.c
index 93c86ed..b66cb19 100644
--- a/src/lib/testing_cmd_recover_secret.c
+++ b/src/lib/testing_cmd_recover_secret.c
@@ -206,6 +206,14 @@ recover_secret_run (void *cls,
 }
 
 
+static void
+delayed_abort (void *cls)
+{
+  struct ANASTASIS_Recovery *recovery = cls;
+  ANASTASIS_recovery_abort (recovery);
+}
+
+
 /**
  * Free the state of a "recover secret" CMD, and possibly
  * cancel it if it did not complete.
@@ -219,7 +227,9 @@ recover_secret_cleanup (void *cls,
 {
   // FIXME: Cleanup logic
   struct RecoverSecretState *rss = cls;
-  ANASTASIS_recovery_abort (rss->recovery);
+
+  (void) GNUNET_SCHEDULER_add_now (&delayed_abort,
+                                   rss->recovery);
   json_decref (rss->id_data);
   GNUNET_free (rss->ri->cs);
   GNUNET_free (rss->ri->dps);
@@ -303,4 +313,4 @@ ANASTASIS_TESTING_cmd_recover_secret (const char *label,
 }
 
 
-/* end of testing_cmd_recover_secret.c */
\ No newline at end of file
+/* end of testing_cmd_recover_secret.c */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]