summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/opentracker.c3
-rw-r--r--src/trackerlogic.c2
-rw-r--r--tests/stubs.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/opentracker.c b/src/opentracker.c
index f0841ff..65fe382 100644
--- a/src/opentracker.c
+++ b/src/opentracker.c
@@ -426,11 +426,14 @@ int main(int argc, char **argv) {
426 if (g_statefile) 426 if (g_statefile)
427 load_state(g_statefile); 427 load_state(g_statefile);
428 428
429 /* Nothing that adds a peer runs before the state file has been read */
430 livesync_init();
429 listen_start_tcp_workers(); 431 listen_start_tcp_workers();
430 listen_start_udp_workers(); 432 listen_start_udp_workers();
431 433
432 server_mainloop(0); 434 server_mainloop(0);
433 worker_stop_all(); 435 worker_stop_all();
436 livesync_deinit();
434 437
435 /* No thread is serving any more, so the teardown can run where a debugger 438 /* No thread is serving any more, so the teardown can run where a debugger
436 and the sanitizers can follow it */ 439 and the sanitizers can follow it */
diff --git a/src/trackerlogic.c b/src/trackerlogic.c
index dac0e0f..d25ddac 100644
--- a/src/trackerlogic.c
+++ b/src/trackerlogic.c
@@ -569,7 +569,6 @@ void trackerlogic_init(void) {
569 clean_init(); 569 clean_init();
570 fullscrape_init(); 570 fullscrape_init();
571 accesslist_init(); 571 accesslist_init();
572 livesync_init();
573 stats_init(); 572 stats_init();
574} 573}
575 574
@@ -610,7 +609,6 @@ void trackerlogic_deinit(void) {
610 609
611 clean_deinit(); 610 clean_deinit();
612 stats_deinit(); 611 stats_deinit();
613 livesync_deinit();
614 accesslist_deinit(); 612 accesslist_deinit();
615 fullscrape_deinit(); 613 fullscrape_deinit();
616 614
diff --git a/tests/stubs.c b/tests/stubs.c
index fd47a68..b8ab174 100644
--- a/tests/stubs.c
+++ b/tests/stubs.c
@@ -31,8 +31,6 @@ long io_trywrite(long d, const char *buf, long len) {
31void fullscrape_init(void) {} 31void fullscrape_init(void) {}
32void fullscrape_deinit(void) {} 32void fullscrape_deinit(void) {}
33void stats_cleanup(void) {} 33void stats_cleanup(void) {}
34void livesync_init(void) {}
35void livesync_deinit(void) {}
36void livesync_tell(struct ot_workstruct *ws) { (void)ws; } 34void livesync_tell(struct ot_workstruct *ws) { (void)ws; }
37void stats_init(void) {} 35void stats_init(void) {}
38void stats_deinit(void) {} 36void stats_deinit(void) {}