Просмотр исходного кода

bin/taud: save the task at the end of parsing update params

ghassmo 4 лет назад
Родитель
Сommit
9c1b5d139e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      bin/taud/src/main.rs

+ 8 - 0
bin/taud/src/main.rs

@@ -277,6 +277,14 @@ impl JsonRpcInterface {
                         .collect(),
                 );
             }
+
+            let save = task.save();
+
+            // TODO print the error
+            if let Err(_e) = save {
+                return Err("Unable to save the task")
+            }
+
             Ok(())
         };