From: Christian Grothoff Date: Mon, 15 Mar 2010 13:52:18 +0000 (+0000) Subject: only start peerinfo processing after core init has finished X-Git-Tag: initial-import-from-subversion-38251~22462 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b987d31a0fb97257e5c001699c127f519fd60d44;p=oweals%2Fgnunet.git only start peerinfo processing after core init has finished --- diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 1d5b41522..fa7168cf8 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -1049,6 +1049,9 @@ core_init (void *cls, BLACKLIST_AFTER_ATTEMPT, &discard_old_blacklist_entries, NULL); + peerinfo_notify = GNUNET_PEERINFO_notify (cfg, sched, + &process_peer, + NULL); } @@ -1427,9 +1430,6 @@ run (void *cls, GNUNET_SCHEDULER_shutdown (sched); return; } - peerinfo_notify = GNUNET_PEERINFO_notify (cfg, sched, - &process_peer, - NULL); } diff --git a/src/topology/test_gnunet_service_topology_data.conf b/src/topology/test_gnunet_service_topology_data.conf index a7cf18955..d429e6c2c 100644 --- a/src/topology/test_gnunet_service_topology_data.conf +++ b/src/topology/test_gnunet_service_topology_data.conf @@ -1,6 +1,6 @@ [PATHS] SERVICEHOME = /tmp/test-gnunet-topology/ -DEFAULTCONFIG = test_gnunet_service_topology_data.conf +# DEFAULTCONFIG = test_gnunet_service_topology_data.conf [resolver] PORT = 2664