diff --git a/src/component/SeleniumBrowser.js b/src/component/SeleniumBrowser.js index 0837e09..059c7c2 100644 --- a/src/component/SeleniumBrowser.js +++ b/src/component/SeleniumBrowser.js @@ -23,7 +23,7 @@ class SeleniumBrowser { .then(body => body.getAttribute('innerHTML')) let htmlPromise = this.isCaptchaPage(html) ? this.resolveCaptcha(driver) : this.getHtml(driver, html, params) html = await htmlPromise - this.pool.destroy(driver) + this.pool.release(driver) return html }) } else {