From: Christian Grothoff Date: Tue, 2 Aug 2011 14:06:45 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~17516 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dab77080be0fa068ddbfa523c71cc82e5f95aa37;p=oweals%2Fgnunet.git fix --- 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, } if (connected == 2) { - GNUNET_SCHEDULER_cancel (tct); - tct = GNUNET_SCHEDULER_NO_TASK; + if (GNUNET_SCHEDULER_NO_TASK != tct) + { + GNUNET_SCHEDULER_cancel (tct); + tct = GNUNET_SCHEDULER_NO_TASK; + } GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, &p2); GNUNET_TRANSPORT_get_hello_cancel (p1.th, &exchange_hello, &p1); if (is_asymmetric_send_constant == GNUNET_YES)