diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-14 15:23:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-14 15:23:38 +0000 |
commit | 93c023286e9e6214fa015c0d5ca2be196050905c (patch) | |
tree | 734aed06abc4df2020b45d0ae8cda3503dfe460b /src/transport/test_transport_api_unreliability.c | |
parent | 66add8aa9a02a01b1ffa94b9f111b6a3a6ca1cec (diff) | |
download | gnunet-93c023286e9e6214fa015c0d5ca2be196050905c.tar.gz gnunet-93c023286e9e6214fa015c0d5ca2be196050905c.zip |
fix
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index a482edda0..c8a98613f 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -530,10 +530,14 @@ notify_connect (void *cls, | |||
530 | if (2 == connected) | 530 | if (2 == connected) |
531 | { | 531 | { |
532 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 532 | if (GNUNET_SCHEDULER_NO_TASK != die_task) |
533 | GNUNET_SCHEDULER_cancel (die_task); | 533 | { |
534 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 534 | GNUNET_SCHEDULER_cancel (die_task); |
535 | GNUNET_SCHEDULER_cancel (tct); | 535 | } |
536 | tct = GNUNET_SCHEDULER_NO_TASK; | 536 | if (GNUNET_SCHEDULER_NO_TASK != tct) |
537 | { | ||
538 | GNUNET_SCHEDULER_cancel (tct); | ||
539 | tct = GNUNET_SCHEDULER_NO_TASK; | ||
540 | } | ||
537 | 541 | ||
538 | if (p2_hello_canceled == GNUNET_NO) | 542 | if (p2_hello_canceled == GNUNET_NO) |
539 | { | 543 | { |
@@ -775,7 +779,7 @@ run (void *cls, | |||
775 | static int | 779 | static int |
776 | check () | 780 | check () |
777 | { | 781 | { |
778 | char *const argv[] = { "test-transport-api-reliability", | 782 | char *const argv[] = { "test-transport-api-unreliability", |
779 | "-c", | 783 | "-c", |
780 | "test_transport_api_data.conf", | 784 | "test_transport_api_data.conf", |
781 | #if VERBOSE | 785 | #if VERBOSE |
@@ -799,7 +803,7 @@ check () | |||
799 | } | 803 | } |
800 | 804 | ||
801 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, | 805 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, |
802 | argv, "test-transport-api-reliability", "nohelp", | 806 | argv, "test-transport-api-unreliability", "nohelp", |
803 | options, &run, &ok); | 807 | options, &run, &ok); |
804 | stop_arm (&p1); | 808 | stop_arm (&p1); |
805 | stop_arm (&p2); | 809 | stop_arm (&p2); |
@@ -902,7 +906,7 @@ main (int argc, char *argv[]) | |||
902 | { | 906 | { |
903 | is_wlan = GNUNET_YES; | 907 | is_wlan = GNUNET_YES; |
904 | } | 908 | } |
905 | GNUNET_log_setup ("test-transport-api-reliability", | 909 | GNUNET_log_setup ("test-transport-api-unreliability", |
906 | #if VERBOSE | 910 | #if VERBOSE |
907 | "DEBUG", | 911 | "DEBUG", |
908 | #else | 912 | #else |
@@ -915,4 +919,4 @@ main (int argc, char *argv[]) | |||
915 | return ret; | 919 | return ret; |
916 | } | 920 | } |
917 | 921 | ||
918 | /* end of test_transport_api_reliability.c */ | 922 | /* end of test_transport_api_unreliability.c */ |