aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/test_quota_compliance.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index a3b135eb2..921fa9542 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -615,8 +615,11 @@ notify_connect (void *cls,
615 } 615 }
616 if (connected == 2) 616 if (connected == 2)
617 { 617 {
618 GNUNET_SCHEDULER_cancel (tct); 618 if (GNUNET_SCHEDULER_NO_TASK != tct)
619 tct = GNUNET_SCHEDULER_NO_TASK; 619 {
620 GNUNET_SCHEDULER_cancel (tct);
621 tct = GNUNET_SCHEDULER_NO_TASK;
622 }
620 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2); 623 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2);
621 GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1); 624 GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1);
622 if (is_asymmetric_send_constant == GNUNET_YES) 625 if (is_asymmetric_send_constant == GNUNET_YES)