From 9ae60ce30ada99a913b4349a4bfff27d09d41287 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 22 Oct 2012 14:25:23 +0000 Subject: [PATCH] fix --- src/testbed/gnunet-testbed-profiler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 166a5580c..c646add7a 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c @@ -620,7 +620,8 @@ register_hosts (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) static void status_cb (void *cls, const struct GNUNET_CONFIGURATION_Handle *config, int status) { - GNUNET_SCHEDULER_cancel (abort_task); + if (GNUNET_SCHEDULER_NO_TASK != abort_task) + GNUNET_SCHEDULER_cancel (abort_task); if (GNUNET_OK != status) { mc_proc = NULL; -- 2.25.1