Fix build for MOBILEAPP
Change-Id: I410359a8f2e6cda6e0857d370a3b18db68b619e2 Reviewed-on: https://gerrit.libreoffice.org/82013 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
parent
ed4558001f
commit
36b126c745
1 changed files with 2 additions and 1 deletions
|
@ -3503,13 +3503,14 @@ int LOOLWSD::innerMain()
|
|||
|
||||
// atexit handlers tend to free Admin before Documents
|
||||
LOG_INF("Exiting. Cleaning up lingering documents.");
|
||||
#ifndef MOBILEAPP
|
||||
if (!SigUtil::getShutdownRequestFlag())
|
||||
{
|
||||
// This shouldn't happen, but it's fail safe to always cleanup properly.
|
||||
LOG_WRN("Exiting WSD without ShutdownRequestFlag. Setting it now.");
|
||||
SigUtil::requestShutdown();
|
||||
}
|
||||
|
||||
#endif
|
||||
// Don't stop the DocBroker, they will exit.
|
||||
constexpr size_t sleepMs = 500;
|
||||
constexpr size_t count = (COMMAND_TIMEOUT_MS * 4) / sleepMs;
|
||||
|
|
Loading…
Reference in a new issue