gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16872 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r16872 - gnunet/src/hostlist
Date: Fri, 16 Sep 2011 10:53:47 +0200

Author: grothoff
Date: 2011-09-16 10:53:47 +0200 (Fri, 16 Sep 2011)
New Revision: 16872

Modified:
   gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
Log:
towards fixing 1773

Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2011-09-15 
17:48:42 UTC (rev 16871)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2011-09-16 
08:53:47 UTC (rev 16872)
@@ -61,11 +61,21 @@
 static void
 clean_up (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
+  if (NULL != p1.ghh)
+  {
+    GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
+    p1.ghh = NULL;
+  }
   if (p1.th != NULL)
   {
     GNUNET_TRANSPORT_disconnect (p1.th);
     p1.th = NULL;
   }
+  if (NULL != p2.ghh)
+  {
+    GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
+    p2.ghh = NULL;
+  }
   if (p2.th != NULL)
   {
     GNUNET_TRANSPORT_disconnect (p2.th);
@@ -123,6 +133,7 @@
   struct PeerContext *p = cls;
 
   GNUNET_TRANSPORT_get_hello_cancel (p->ghh);
+  p->ghh = NULL;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received HELLO, starting hostlist service.\n");
 }




reply via email to

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