Skip to content

Commit

Permalink
Merge pull request #14909 from omoerbeek/rec-startstop-fix
Browse files Browse the repository at this point in the history
re: followup to 14796: also call stop hook in 1 thread case
  • Loading branch information
omoerbeek authored Dec 2, 2024
2 parents 85dfaa0 + 71a9a0f commit 374a7d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdns/recursordist/rec-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ int RecThreadInfo::runThreads(Logr::log_t log)
ret = tInfo.exitCode;
}
}
runStartStopLua(false, log);
}
return ret;
}
Expand Down Expand Up @@ -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 */)
Expand Down

0 comments on commit 374a7d3

Please sign in to comment.