aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_gns.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-17 14:05:06 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-17 14:05:06 +0200
commitca94ab81861548e635819836e256aaa796955d4a (patch)
treebd4173fb697e89e298c6e1c245f5b58517b8f04c /src/escrow/plugin_escrow_gns.c
parent5e99dcb2e58a1960043811929b14c7bd44e03851 (diff)
downloadgnunet-ca94ab81861548e635819836e256aaa796955d4a.tar.gz
gnunet-ca94ab81861548e635819836e256aaa796955d4a.zip
schedule execution now, no need to wait
Diffstat (limited to 'src/escrow/plugin_escrow_gns.c')
-rw-r--r--src/escrow/plugin_escrow_gns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/escrow/plugin_escrow_gns.c b/src/escrow/plugin_escrow_gns.c
index 36de5d551..3254b6633 100644
--- a/src/escrow/plugin_escrow_gns.c
+++ b/src/escrow/plugin_escrow_gns.c
@@ -469,7 +469,6 @@ keyshare_distributed (void *cls,
469 struct NamestoreQueueEntry *ns_qe = cls; 469 struct NamestoreQueueEntry *ns_qe = cls;
470 struct ESCROW_PluginOperationWrapper *plugin_op_wrap; 470 struct ESCROW_PluginOperationWrapper *plugin_op_wrap;
471 struct ESCROW_GnsPluginOperation *p_op; 471 struct ESCROW_GnsPluginOperation *p_op;
472 struct GNUNET_TIME_Relative delay;
473 472
474 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Keyshare distributed\n"); 473 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Keyshare distributed\n");
475 474
@@ -495,8 +494,8 @@ keyshare_distributed (void *cls,
495 GNUNET_free (ns_qe); 494 GNUNET_free (ns_qe);
496 if (NULL == p_op->ns_qes_head) 495 if (NULL == p_op->ns_qes_head)
497 { 496 {
498 delay.rel_value_us = 100 * GNUNET_TIME_relative_get_millisecond_().rel_value_us; 497 // schedule the further execution, lets NAMESTORE clean up its operation list
499 GNUNET_SCHEDULER_add_delayed (delay, &keyshare_distribution_finished, plugin_op_wrap); 498 GNUNET_SCHEDULER_add_now (&keyshare_distribution_finished, plugin_op_wrap);
500 } 499 }
501} 500}
502 501