summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-05-04 12:10:01 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-05-04 12:10:01 +0200
commitb71d263168cd8c1cedce04a316bbbc9f335efedb (patch)
treef0f746d09ae7b02bd7e3693b30f48d0274c7fb81 /src
parent0be8965219787e5ceb20721ac1ccd6cbbafe51c1 (diff)
Add space bewteen multiple tasks in command list.
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);
}