diff --git a/libnymea-core/servers/tunnelproxyserver.cpp b/libnymea-core/servers/tunnelproxyserver.cpp index 8ef784a0..9b1b4c84 100644 --- a/libnymea-core/servers/tunnelproxyserver.cpp +++ b/libnymea-core/servers/tunnelproxyserver.cpp @@ -76,7 +76,8 @@ void TunnelProxyServer::sendData(const QUuid &clientId, const QByteArray &data) return; } - tunnelProxySocket->writeData(data); + // Note: we add a \n at the end of the data for easier json parsing on the other end + tunnelProxySocket->writeData(data + '\n'); } void TunnelProxyServer::sendData(const QList &clients, const QByteArray &data) @@ -108,6 +109,7 @@ bool TunnelProxyServer::startServer() bool TunnelProxyServer::stopServer() { + qCDebug(dcTunnelProxyServer()) << "Stopping server"; m_tunnelProxySocketServer->stopServer(); return true; }