diff options
author | t3sserakt <t3ss@posteo.de> | 2023-01-27 13:13:18 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-01-27 13:13:18 +0100 |
commit | d3d994d338667d4bc263c8a6832cb592d678422f (patch) | |
tree | 8d78903768024db106d3776acf83857badecd8cd /src/testing | |
parent | f5d40212ba3934b8138c6db29b0afe8b2fadd7d3 (diff) | |
download | gnunet-d3d994d338667d4bc263c8a6832cb592d678422f.tar.gz gnunet-d3d994d338667d4bc263c8a6832cb592d678422f.zip |
TNG: Added tcp icmp nat hole punching test case script, and fixed bugs occuring during shutdown.
Diffstat (limited to 'src/testing')
-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 | ||