This commit is contained in:
spiduler
2020-10-21 19:00:17 +09:00
parent dbf5283496
commit 7334db3ceb

View File

@@ -87,6 +87,7 @@ class SeleniumBrowser {
} while (res.request == 'CAPCHA_NOT_READY') } while (res.request == 'CAPCHA_NOT_READY')
this.isRecaptchaReseponseEmpty = false this.isRecaptchaReseponseEmpty = false
//this.pool.release(driver) //this.pool.release(driver)
driver.quit()
return res return res
}).then(res => { }).then(res => {
logger.debug(res, '2captcha solved') logger.debug(res, '2captcha solved')
@@ -101,6 +102,7 @@ class SeleniumBrowser {
}).catch(error => { }).catch(error => {
logger.error({ message: error.message }, 'Error occured while process with 2captcha') logger.error({ message: error.message }, 'Error occured while process with 2captcha')
//this.pool.release(driver) //this.pool.release(driver)
driver.quit()
}) })
return '' return ''
} else { } else {
@@ -111,10 +113,11 @@ class SeleniumBrowser {
.then(body => body.getAttribute('innerHTML')) .then(body => body.getAttribute('innerHTML'))
.then(html => { .then(html => {
//this.pool.release(driver) //this.pool.release(driver)
driver.quit()
return html return html
}) })
} else { } else {
return html return html
} }
} }
} }