small exists_worker_with_tag nit
This commit is contained in:
@@ -13,9 +13,11 @@
|
||||
try {
|
||||
const existsWorkerWithTag = await WorkerService.existsWorkerWithTag({ tag })
|
||||
noWorkerWithTag = !existsWorkerWithTag
|
||||
timeout = setTimeout(() => {
|
||||
lookForTag()
|
||||
}, 1000)
|
||||
if (noWorkerWithTag) {
|
||||
timeout = setTimeout(() => {
|
||||
lookForTag()
|
||||
}, 1000)
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user