summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/munia_proto.cc1
-rw-r--r--src/taskmanager.cc6
2 files changed, 4 insertions, 3 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);
}
diff --git a/src/taskmanager.cc b/src/taskmanager.cc
index f5d9866..2526341 100644
--- a/src/taskmanager.cc
+++ b/src/taskmanager.cc
@@ -33,9 +33,9 @@
TaskManager task_manager;
#define ROOT_ID 0
-#define LOSTFOUND_ID 1
-#define FINISHED_ID 2
-#define BACKLOG_ID 3
+#define FINISHED_ID 1
+#define BACKLOG_ID 2
+#define LOSTFOUND_ID 3
#define PROJECTS_ID 4
#define FIRST_TASK_ID 10