From 47d22d538ac5c09df6aa098922f8750cb939102b Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 12 Mar 2020 15:13:28 +0200 Subject: [PATCH] Fix build for MOBILEAPP Change-Id: I0903f13438493d167c263020d923536b4de71e5d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90385 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- kit/Kit.cpp | 2 ++ wsd/DocumentBroker.hpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kit/Kit.cpp b/kit/Kit.cpp index f14362c35..f8c76a06a 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -2149,12 +2149,14 @@ protected: LOG_DBG("CreateSession failed."); } } +#if !MOBILEAPP else if (tokens.equals(0, "exit")) { LOG_INF("Terminating immediately due to parent 'exit' command."); Log::shutdown(); std::_Exit(EX_SOFTWARE); } +#endif else if (tokens.equals(0, "tile") || tokens.equals(0, "tilecombine") || tokens.equals(0, "canceltiles") || tokens.equals(0, "paintwindow") || tokens.equals(0, "resizewindow") || LOOLProtocol::getFirstToken(tokens[0], '-') == "child") diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index 68369d274..7096afd4c 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -108,6 +108,7 @@ public: try { +#if !MOBILEAPP // There is no "child process" in a mobile app LOG_DBG("Closing ChildProcess [" << _pid << "]."); // Request the child to exit @@ -116,7 +117,7 @@ public: LOG_DBG("Stopping ChildProcess [" << _pid << "] by sending 'exit' command."); sendTextFrame("exit"); } - +#endif // Shutdown the socket. if (_ws) _ws->shutdown();