]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
re: followup to 14796: also call stop hook in 1 thread case 14909/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 2 Dec 2024 08:19:52 +0000 (09:19 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 2 Dec 2024 08:19:52 +0000 (09:19 +0100)
pdns/recursordist/rec-main.cc

index 9280c89672bbe2ab6d68d456741a50c89168f066..380c77a229d42f275977750713ae1efe5d68cb46 100644 (file)
@@ -356,7 +356,6 @@ int RecThreadInfo::runThreads(Logr::log_t log)
         ret = tInfo.exitCode;
       }
     }
-    runStartStopLua(false, log);
   }
   return ret;
 }
@@ -2390,8 +2389,9 @@ static int serviceMain(Logr::log_t log)
 #endif /* NOD_ENABLED */
 
   runStartStopLua(true, log);
-
-  return RecThreadInfo::runThreads(log);
+  ret = RecThreadInfo::runThreads(log);
+  runStartStopLua(false, log);
+  return ret;
 }
 
 static void handlePipeRequest(int fileDesc, FDMultiplexer::funcparam_t& /* var */)