summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/munia_proto.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/munia_proto.cc b/src/munia_proto.cc
index b7123aa..36c6e5c 100644
--- a/src/munia_proto.cc
+++ b/src/munia_proto.cc
@@ -152,6 +152,7 @@ int callback_lws_task(struct libwebsocket_context * context,
msgqueue[wsi].pop();
char buf[32];
sprintf(buf, "%d", msg.tid);
+ if(msgstr.size() > LWS_SEND_BUFFER_PRE_PADDING) msgstr += " ";
msgstr += std::string(buf) + " " + msg_tostring(msg);
}