diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 04:13:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 04:13:04 +0200 |
| commit | 527c51c22a50720e5c28fe2d6b5bd3151bc688c9 (patch) | |
| tree | 8e2e506e7930717bee140c2955c6486688762c53 /app | |
| parent | dbbeffd02629209f42affe3fb4bb4c46639ba0e3 (diff) | |
fix empty stop_task bug in runner
Diffstat (limited to 'app')
| -rw-r--r-- | app/relay/runner.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/relay/runner.js b/app/relay/runner.js index 6620bca..78ac4b1 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -215,6 +215,7 @@ export function run_task(task, preempt, watch){ } export function stop_task(task){ + if (!task) return if (state.current_cpu_task.task.uuid === task.uuid) { terminate(state.current_cpu_task.subprocess) return { status: 'ok' } |
