From: Christian Grothoff Date: Fri, 8 Jul 2016 18:08:06 +0000 (+0000) Subject: -cancel reconnect task X-Git-Tag: initial-import-from-subversion-38251~563 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c7d441a8d85fcfd5eef2cf411898d63af52e5d6;p=oweals%2Fgnunet.git -cancel reconnect task --- diff --git a/src/transport/transport_api_get_hello.c b/src/transport/transport_api_get_hello.c index 9a65616a9..5a9efcd14 100644 --- a/src/transport/transport_api_get_hello.c +++ b/src/transport/transport_api_get_hello.c @@ -251,6 +251,11 @@ GNUNET_TRANSPORT_get_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, void GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh) { + if (NULL != ghh->reconnect_task) + { + GNUNET_SCHEDULER_cancel (ghh->reconnect_task); + ghh->reconnect_task = NULL; + } if (NULL != ghh->mq) { GNUNET_MQ_destroy (ghh->mq);