diff --git a/flow.js b/flow.js index e284de1..030e9e0 100644 --- a/flow.js +++ b/flow.js @@ -214,6 +214,18 @@ FS.notify = function(controller, id) { $.success(); }; +FS.restart = function(id) { + let item = FS.instances[id]; + if (item) { + if (item.flow) { + if (item.flow.terminate) + item.flow.terminate(); + else + item.flow.kill(9); + return true; + } + } +}; function initping() {