Commit 2eccf44af7a93d9f68620f51d1dc57b90092db61
1 parent
3af17eead7
Exists in
master
GW-PULL: tidak delay jika dapat LOCKED dari CORE
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
gateway/pull.js
... | ... | @@ -134,11 +134,15 @@ function pullTask() { |
134 | 134 | } |
135 | 135 | matrix.core_is_healthy = true; |
136 | 136 | |
137 | - if (body === 'NONE' || body === 'LOCKED') { | |
137 | + if (body === 'NONE') { | |
138 | 138 | onNoTask(); |
139 | 139 | return; |
140 | 140 | } |
141 | 141 | |
142 | + if (body === 'LOCKED') { | |
143 | + return; | |
144 | + } | |
145 | + | |
142 | 146 | forwardCoreTaskToPartner(body); |
143 | 147 | }); |
144 | 148 | } |