aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-service-transport_hello.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c
index 7ed5c1e04..00df3d00c 100644
--- a/src/transport/gnunet-service-transport_hello.c
+++ b/src/transport/gnunet-service-transport_hello.c
@@ -203,16 +203,19 @@ refresh_hello_task (void *cls,
203 203
204 204
205/** 205/**
206 * Schedule task to refresh hello (unless such a 206 * Schedule task to refresh hello (but only if such a
207 * task exists already). 207 * task exists already, as otherwise the module might
208 * have been shutdown).
208 */ 209 */
209static void 210static void
210refresh_hello () 211refresh_hello ()
211{ 212{
212 if (NULL != hello_task) 213 if (NULL != hello_task)
214 {
213 GNUNET_SCHEDULER_cancel (hello_task); 215 GNUNET_SCHEDULER_cancel (hello_task);
214 hello_task = GNUNET_SCHEDULER_add_now (&refresh_hello_task, 216 hello_task = GNUNET_SCHEDULER_add_now (&refresh_hello_task,
215 NULL); 217 NULL);
218 }
216} 219}
217 220
218 221