Commit 16dc6ad26a58ea75674170703977eea4d05ca685
1 parent
62c78bb15b
Exists in
master
Ubah posisi pulltasklocked
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
gateway/pull.js
... | ... | @@ -57,11 +57,6 @@ function pullTask() { |
57 | 57 | return; |
58 | 58 | } |
59 | 59 | |
60 | - if (config.pulltask_mutex && pullTaskLocked) { | |
61 | - return; | |
62 | - } | |
63 | - pullTaskLocked = true; | |
64 | - | |
65 | 60 | if (is_on_delay_after_no_task && !config.disable_delay_after_no_task) { |
66 | 61 | return; |
67 | 62 | } |
... | ... | @@ -84,6 +79,11 @@ function pullTask() { |
84 | 79 | return; |
85 | 80 | } |
86 | 81 | |
82 | + if (config.pulltask_mutex && pullTaskLocked) { | |
83 | + return; | |
84 | + } | |
85 | + pullTaskLocked = true; | |
86 | + | |
87 | 87 | let options = { |
88 | 88 | url: core_pull_task_url, |
89 | 89 | qs: { |