summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-08 14:59:35 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-08 15:01:45 +0200
commit1521685c81b026cccbd0c6f9f20876838f2e6d4e (patch)
tree65a7b724ecf6e689363d4260028ee16ab77dbe4a
parentdf0b3835c504d6d5cdc900082a97c10f9b4d0bd3 (diff)
Avoid assertion failure in the MOBILEAPP case
The dummy Unit thing is of type Wsd, not Kit, there. Just put this into #ifndef. Change-Id: Ic709472154fd17761a82df9814e5d3746f96f607
-rw-r--r--kit/Kit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index 2c21155d7..bc3ebeba1 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -2109,9 +2109,10 @@ protected:
{
std::string message(data.data(), data.size());
+#ifndef MOBILEAPP
if (UnitKit::get().filterKitMessage(this, message))
return;
-
+#endif
std::vector<std::string> tokens = LOOLProtocol::tokenize(message);
Log::StreamLogger logger = Log::debug();
if (logger.enabled())