From: Matthias Wachs Date: Mon, 12 Apr 2010 15:21:37 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~22189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa1e63ea97b533c6a05119077228a1616b781748;p=oweals%2Fgnunet.git --- diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 4f639f384..919c80a99 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c @@ -286,6 +286,16 @@ run (void *cls, return; } stats = GNUNET_STATISTICS_create (sched, "hostlist", cfg); + + core = GNUNET_CORE_connect (sched, cfg, + GNUNET_TIME_UNIT_FOREVER_REL, + NULL, + &core_init, + NULL, &connect_handler, &disconnect_handler, + NULL, GNUNET_NO, + NULL, GNUNET_NO, + handlers); + if (bootstrapping) { GNUNET_HOSTLIST_client_start (cfg, sched, stats, @@ -300,15 +310,6 @@ run (void *cls, } - core = GNUNET_CORE_connect (sched, cfg, - GNUNET_TIME_UNIT_FOREVER_REL, - NULL, - &core_init, - NULL, &connect_handler, &disconnect_handler, - NULL, GNUNET_NO, - NULL, GNUNET_NO, - handlers); - GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_UNIT_FOREVER_REL, &cleaning_task, NULL);