summaryrefslogtreecommitdiff
path: root/app/client/system/system.reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-05 04:12:42 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-05 04:12:42 +0200
commit55c1e265e8b274ee73c6e1b9e9a59cb44db7fe84 (patch)
treec74ba0c9b4be4875d4d4b21336be2a33a3d9edb9 /app/client/system/system.reducer.js
parent8637ba895d2f8f249734076fea6d8a7e29b336cd (diff)
fetch task worksssssss
Diffstat (limited to 'app/client/system/system.reducer.js')
-rw-r--r--app/client/system/system.reducer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js
index c20bf93..132923b 100644
--- a/app/client/system/system.reducer.js
+++ b/app/client/system/system.reducer.js
@@ -175,10 +175,10 @@ const systemReducer = (state = systemInitialState, action) => {
stderr: "",
}
case types.task.task_finish:
- if (state.runner.cpu.task.uuid === action.task.uuid) {
+ if (action.task === 'cpu' || state.runner.cpu.task.uuid === action.task.uuid) {
processor = 'cpu'
}
- else if (state.runner.gpu.task.uuid === action.task.uuid) {
+ else if (action.task === 'gpu' || state.runner.gpu.task.uuid === action.task.uuid) {
processor = 'gpu'
} else {
processor = null