From 71a9a0fd4c7d9295867ac28709c25334249387c3 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 2 Dec 2024 09:19:52 +0100 Subject: [PATCH] re: followup to 14796: also call stop hook in 1 thread case --- pdns/recursordist/rec-main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 9280c89672..380c77a229 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -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 */) -- 2.47.2