diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-12 19:19:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-12 19:19:11 +0000 |
commit | 30b63fcc6c9ab16a15f2f9640f8991e2893d9cef (patch) | |
tree | 7576181042b90e16bfdc1653fd7c67502d083b5c /src/transport/gnunet-service-transport_hello.c | |
parent | e5f8178881e8fa8af23574b8303f0396f79c0834 (diff) | |
download | gnunet-30b63fcc6c9ab16a15f2f9640f8991e2893d9cef.tar.gz gnunet-30b63fcc6c9ab16a15f2f9640f8991e2893d9cef.zip |
-fix shutdown issue
Diffstat (limited to 'src/transport/gnunet-service-transport_hello.c')
-rw-r--r-- | src/transport/gnunet-service-transport_hello.c | 11 |
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 | */ |
209 | static void | 210 | static void |
210 | refresh_hello () | 211 | refresh_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 | ||