diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp index cc7d6c095..a0fc215ce 100644 --- a/loolwsd/LOOLWSD.cpp +++ b/loolwsd/LOOLWSD.cpp @@ -1496,7 +1496,7 @@ int LOOLWSD::main(const std::vector& /*args*/) if (careerSpanSeconds > 0 && time(nullptr) > startTimeSpan + careerSpanSeconds) { Log::info(std::to_string(time(nullptr) - startTimeSpan) + " seconds gone, finishing as requested."); - break; + TerminationFlag = true; } #endif }