From df1470e48a49d184b3ca60b7245a56fc970d07b3 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 11 Mar 2013 10:23:02 +0000 Subject: [PATCH] - fix --- configure.ac | 3 ++- src/testbed/gnunet-service-testbed.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 35d831032..e8ba3f61c 100644 --- a/configure.ac +++ b/configure.ac @@ -976,7 +976,8 @@ AC_ARG_ENABLE([ll], else ll=1 fi], - [ll=0]) + [ll=0 + enable_ll=no]) AC_MSG_RESULT($enable_ll) AM_CONDITIONAL([ENABLE_LL], [test "x$ll" = "x1"]) AC_DEFINE_UNQUOTED([ENABLE_LL], [$ll], [Build with LL support]) diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c index 2d4eab36c..e7e0a5d40 100644 --- a/src/testbed/gnunet-service-testbed.c +++ b/src/testbed/gnunet-service-testbed.c @@ -2004,6 +2004,7 @@ shutdown_peers_timeout_cb (void *cls, struct ForwardedOperationContext *fo_ctxt = cls; struct HandlerContext_ShutdownPeers *hc; + fo_ctxt->timeout_task = GNUNET_SCHEDULER_NO_TASK; hc = fo_ctxt->cls; hc->timeout = GNUNET_YES; GNUNET_assert (0 < hc->nslaves); @@ -2034,6 +2035,9 @@ shutdown_peers_reply_cb (void *cls, struct HandlerContext_ShutdownPeers *hc; hc = fo_ctxt->cls; + GNUNET_assert (GNUNET_SCHEDULER_NO_TASK != fo_ctxt->timeout_task); + GNUNET_SCHEDULER_cancel (fo_ctxt->timeout_task); + fo_ctxt->timeout_task = GNUNET_SCHEDULER_NO_TASK; GNUNET_assert (0 < hc->nslaves); hc->nslaves--; if (GNUNET_MESSAGE_TYPE_TESTBED_GENERIC_OPERATION_SUCCESS != -- 2.25.1