From e2bafbfb7a89e05f7dcbe3660d98e77184aa779c Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 15 Apr 2013 14:47:31 +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 24b3cdac6..fc9533567 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c @@ -181,7 +181,8 @@ controller_event_cb (void *cls, { printf ("\nAborting due to very high failure rate\n"); print_overlay_links_summary (); - GNUNET_SCHEDULER_cancel (abort_task); + if (GNUNET_SCHEDULER_NO_TASK != abort_task) + GNUNET_SCHEDULER_cancel (abort_task); abort_task = GNUNET_SCHEDULER_add_now (&do_abort, NULL); return; } -- 2.25.1