From: Sree Harsha Totakura Date: Mon, 22 Oct 2012 14:25:23 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~11273 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ae60ce30ada99a913b4349a4bfff27d09d41287;p=oweals%2Fgnunet.git fix --- 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;