aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-08 18:08:06 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-08 18:08:06 +0000
commit5c7d441a8d85fcfd5eef2cf411898d63af52e5d6 (patch)
treeb2b3afb96cc6567138c8e15e1d57cf521aa95046 /src
parent0a35715ace98e785c9ab2c0b8f79f24f68bfb2c5 (diff)
downloadgnunet-5c7d441a8d85fcfd5eef2cf411898d63af52e5d6.tar.gz
gnunet-5c7d441a8d85fcfd5eef2cf411898d63af52e5d6.zip
-cancel reconnect task
Diffstat (limited to 'src')
-rw-r--r--src/transport/transport_api_get_hello.c5
1 files changed, 5 insertions, 0 deletions
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,
251void 251void
252GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh) 252GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh)
253{ 253{
254 if (NULL != ghh->reconnect_task)
255 {
256 GNUNET_SCHEDULER_cancel (ghh->reconnect_task);
257 ghh->reconnect_task = NULL;
258 }
254 if (NULL != ghh->mq) 259 if (NULL != ghh->mq)
255 { 260 {
256 GNUNET_MQ_destroy (ghh->mq); 261 GNUNET_MQ_destroy (ghh->mq);