gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35245 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r35245 - gnunet/src/transport
Date: Thu, 12 Feb 2015 20:19:11 +0100

Author: grothoff
Date: 2015-02-12 20:19:11 +0100 (Thu, 12 Feb 2015)
New Revision: 35245

Modified:
   gnunet/src/transport/gnunet-service-transport_hello.c
Log:
-fix shutdown issue

Modified: gnunet/src/transport/gnunet-service-transport_hello.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_hello.c       2015-02-12 
19:13:46 UTC (rev 35244)
+++ gnunet/src/transport/gnunet-service-transport_hello.c       2015-02-12 
19:19:11 UTC (rev 35245)
@@ -203,16 +203,19 @@
 
 
 /**
- * Schedule task to refresh hello (unless such a
- * task exists already).
+ * Schedule task to refresh hello (but only if such a
+ * task exists already, as otherwise the module might
+ * have been shutdown).
  */
 static void
 refresh_hello ()
 {
   if (NULL != hello_task)
+  {
     GNUNET_SCHEDULER_cancel (hello_task);
-  hello_task = GNUNET_SCHEDULER_add_now (&refresh_hello_task,
-                                         NULL);
+    hello_task = GNUNET_SCHEDULER_add_now (&refresh_hello_task,
+                                           NULL);
+  }
 }
 
 




reply via email to

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