summaryrefslogtreecommitdiff
path: root/src/messagehandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/messagehandler.cc')
-rw-r--r--src/messagehandler.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/messagehandler.cc b/src/messagehandler.cc
index 0d2dd3c..16fe043 100644
--- a/src/messagehandler.cc
+++ b/src/messagehandler.cc
@@ -47,9 +47,8 @@ MessageList handle_msg(MessageList msgList, clientid_t wsi) {
case cmd::create:
{
INFO(messagehandler, "Handling create command\n");
- task_t t = task_manager.createTask();
try {
- m.nodes = task_manager.addTask(t, m.create.parentid);
+ m.nodes = task_manager.createTask(m.create.parentid);
outmsgs.push_back(m);
}
catch (std::exception& e) {
@@ -62,7 +61,7 @@ MessageList handle_msg(MessageList msgList, clientid_t wsi) {
{
INFO(messagehandler, "Handling remove command\n");
try {
- m.nodes = task_manager.deleteTask(m.remove.id);
+ m.nodes = task_manager.removeTask(m.remove.id);
outmsgs.push_back(m);
}
catch (std::exception& e) {