only start peerinfo processing after core init has finished
authorChristian Grothoff <christian@grothoff.org>
Mon, 15 Mar 2010 13:52:18 +0000 (13:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 15 Mar 2010 13:52:18 +0000 (13:52 +0000)
src/topology/gnunet-daemon-topology.c
src/topology/test_gnunet_service_topology_data.conf

index 1d5b41522c3364f93aea23501ce7022741e1dac1..fa7168cf8bca857ae59ceea0e17d8b4a8ad9eb0a 100644 (file)
@@ -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);
 }
 
 
index a7cf18955bb3b8355cd68745fbaf0ede3ef22c22..d429e6c2cfa228e65c998408cdcaf74d668ecc93 100644 (file)
@@ -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