summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-01 00:53:53 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-01 00:53:53 +0100
commitaf0f2cb1be5aa10bb6a4bdd9f7ef4aa3950ecb31 (patch)
treebd366224016709d65bbb0b8fbc3148c29719e8c4 /opentracker.c
parentb7d9dc14eb560b1d19f506610535815f29085579 (diff)
Generalize the worker setup/runloop/teardown logic by adding a smol ot_worker helper
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 2f2746d..644e99c 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -38,6 +38,7 @@
38#include "ot_stats.h" 38#include "ot_stats.h"
39#include "ot_tcp.h" 39#include "ot_tcp.h"
40#include "ot_udp.h" 40#include "ot_udp.h"
41#include "ot_worker.h"
41#include "trackerlogic.h" 42#include "trackerlogic.h"
42 43
43/* Globals */ 44/* Globals */
@@ -429,8 +430,7 @@ int main(int argc, char **argv) {
429 listen_start_udp_workers(); 430 listen_start_udp_workers();
430 431
431 server_mainloop(0); 432 server_mainloop(0);
432 tcp_workers_deinit(); 433 worker_stop_all();
433 udp_workers_deinit();
434 434
435 /* No thread is serving any more, so the teardown can run where a debugger 435 /* No thread is serving any more, so the teardown can run where a debugger
436 and the sanitizers can follow it */ 436 and the sanitizers can follow it */