summaryrefslogtreecommitdiff
path: root/src/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opentracker.c')
-rw-r--r--src/opentracker.c3
1 files changed, 3 insertions, 0 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 */