aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/gnunet-peerstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/gnunet-peerstore.c')
-rw-r--r--src/peerstore/gnunet-peerstore.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/peerstore/gnunet-peerstore.c b/src/peerstore/gnunet-peerstore.c
index 68ae1746f..25a4f0ff4 100644
--- a/src/peerstore/gnunet-peerstore.c
+++ b/src/peerstore/gnunet-peerstore.c
@@ -60,16 +60,15 @@ shutdown_task (void *cls)
60 * @param cfg configuration 60 * @param cfg configuration
61 */ 61 */
62static void 62static void
63run (void *cls, char *const *args, const char *cfgfile, 63run (void *cls,
64 char *const *args,
65 const char *cfgfile,
64 const struct GNUNET_CONFIGURATION_Handle *cfg) 66 const struct GNUNET_CONFIGURATION_Handle *cfg)
65{ 67{
66 68 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
67 peerstore_handle = NULL; 69 NULL);
68 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
69 NULL);
70 peerstore_handle = GNUNET_PEERSTORE_connect (cfg); 70 peerstore_handle = GNUNET_PEERSTORE_connect (cfg);
71 GNUNET_assert (NULL != peerstore_handle); 71 GNUNET_assert (NULL != peerstore_handle);
72
73 ret = 0; 72 ret = 0;
74} 73}
75 74