This commit is contained in:
spiduler
2020-10-23 14:24:12 +09:00
parent 2baabd6941
commit ebd0f60b35

View File

@@ -142,7 +142,11 @@ class SeleniumBrowser {
return res return res
}) })
.then(res => { .then(res => {
return driver.executeScript('captchaCallback("' + res.request + '")').then(async () => await this.sleep(1000 * 5)) return driver.executeScript('captchaCallback("' + res.request + '")').then(() => this.sleep(1000 * 5))
}).finally(() => {
if(this.pool.isBorrowedResource(driver)) {
this.pool.release(driver)
}
}) })
} }