diff options
Diffstat (limited to 'src/testing/testing_api_cmd_netjail_start_cmds_helper.c')
-rw-r--r-- | src/testing/testing_api_cmd_netjail_start_cmds_helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_netjail_start_cmds_helper.c b/src/testing/testing_api_cmd_netjail_start_cmds_helper.c index 545b89b33..619392119 100644 --- a/src/testing/testing_api_cmd_netjail_start_cmds_helper.c +++ b/src/testing/testing_api_cmd_netjail_start_cmds_helper.c | |||
@@ -489,6 +489,7 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message) | |||
489 | } else if (ns->number_of_local_tests_finished == total_number) | 489 | } else if (ns->number_of_local_tests_finished == total_number) |
490 | { | 490 | { |
491 | GNUNET_SCHEDULER_cancel (ns->timeout_task); | 491 | GNUNET_SCHEDULER_cancel (ns->timeout_task); |
492 | ns->timeout_task = NULL; | ||
492 | GNUNET_TESTING_async_finish (&ns->ac); | 493 | GNUNET_TESTING_async_finish (&ns->ac); |
493 | } | 494 | } |
494 | break; | 495 | break; |
@@ -525,7 +526,8 @@ exp_cb (void *cls) | |||
525 | struct NetJailState *ns = cls; | 526 | struct NetJailState *ns = cls; |
526 | 527 | ||
527 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called exp_cb.\n"); | 528 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called exp_cb.\n"); |
528 | GNUNET_SCHEDULER_cancel (ns->timeout_task); | 529 | if (NULL != ns->timeout_task) |
530 | GNUNET_SCHEDULER_cancel (ns->timeout_task); | ||
529 | GNUNET_TESTING_async_fail (&(ns->ac)); | 531 | GNUNET_TESTING_async_fail (&(ns->ac)); |
530 | } | 532 | } |
531 | 533 | ||