diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 18:08:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 18:08:06 +0000 |
commit | 5c7d441a8d85fcfd5eef2cf411898d63af52e5d6 (patch) | |
tree | b2b3afb96cc6567138c8e15e1d57cf521aa95046 /src | |
parent | 0a35715ace98e785c9ab2c0b8f79f24f68bfb2c5 (diff) | |
download | gnunet-5c7d441a8d85fcfd5eef2cf411898d63af52e5d6.tar.gz gnunet-5c7d441a8d85fcfd5eef2cf411898d63af52e5d6.zip |
-cancel reconnect task
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_api_get_hello.c | 5 |
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, | |||
251 | void | 251 | void |
252 | GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh) | 252 | GNUNET_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); |