From b71d263168cd8c1cedce04a316bbbc9f335efedb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 4 May 2012 12:10:01 +0200 Subject: Add space bewteen multiple tasks in command list. --- src/munia_proto.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); } -- cgit v1.2.3