diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
commit | 95f9076a2139f5fb042b944a0658b6cda2fa35db (patch) | |
tree | b0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/cadet/gnunet-service-cadet.c | |
parent | 7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff) | |
download | gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip |
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/cadet/gnunet-service-cadet.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c index a2e00300b..3a07f0ee5 100644 --- a/src/cadet/gnunet-service-cadet.c +++ b/src/cadet/gnunet-service-cadet.c | |||
@@ -135,8 +135,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
135 | stats = GNUNET_STATISTICS_create ("cadet", c); | 135 | stats = GNUNET_STATISTICS_create ("cadet", c); |
136 | 136 | ||
137 | /* Scheduled the task to clean up when shutdown is called */ | 137 | /* Scheduled the task to clean up when shutdown is called */ |
138 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, | 138 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, |
139 | NULL); | 139 | NULL); |
140 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "reading key\n"); | 140 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "reading key\n"); |
141 | my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_configuration (c); | 141 | my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_configuration (c); |
142 | GNUNET_assert (NULL != my_private_key); | 142 | GNUNET_assert (NULL != my_private_key); |