From 90038ad8f32926b5e0ee30e3ed1f1cd1a9d22a93 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 5 Nov 2026 16:27:38 +0100 Subject: Start live sync where main knows the state file is in --- src/opentracker.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/opentracker.c') 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) { if (g_statefile) load_state(g_statefile); + /* Nothing that adds a peer runs before the state file has been read */ + livesync_init(); listen_start_tcp_workers(); listen_start_udp_workers(); server_mainloop(0); worker_stop_all(); + livesync_deinit(); /* No thread is serving any more, so the teardown can run where a debugger and the sanitizers can follow it */ -- cgit v1.3