gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 02/17: cancel potentially dangling reconnect task


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/17: cancel potentially dangling reconnect task
Date: Mon, 09 Jan 2017 21:19:08 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 2024b175d543b5a36dab4e5a616a11e5ab284d29
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jan 9 08:30:41 2017 +0100

    cancel potentially dangling reconnect task
---
 src/nat/nat_api.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c
index 5b4c39682..810d35649 100644
--- a/src/nat/nat_api.c
+++ b/src/nat/nat_api.c
@@ -714,6 +714,11 @@ GNUNET_NAT_unregister (struct GNUNET_NAT_Handle *nh)
     GNUNET_MQ_destroy (nh->mq);
     nh->mq = NULL;
   }
+  if (NULL != nh->reconnect_task)
+  {
+    GNUNET_SCHEDULER_cancel (nh->reconnect_task);
+    nh->reconnect_task = NULL;
+  }
   GNUNET_free (nh->reg);
   GNUNET_free (nh);
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]