]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: some error paths do no create thread 0 so don't join it 16094/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Sep 2025 09:47:17 +0000 (11:47 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 Sep 2025 09:49:02 +0000 (11:49 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-main.hh

index 49576ee7bb016a2d08f5784f3242b8e2ad2aae81..90f61f0849d37040304a865a6f20821d9ecb9dba 100644 (file)
@@ -556,7 +556,9 @@ public:
 
   static void joinThread0()
   {
-    info(0).thread.join();
+    if (!s_threadInfos.empty()) {
+      info(0).thread.join();
+    }
   }
 
   static void resize(size_t size)