This commit is contained in:
spiduler
2020-10-25 00:23:27 +09:00
parent 2821108288
commit ec1f665bdd

View File

@@ -22,6 +22,9 @@ class SeleniumBrowser {
reCreatePool() { reCreatePool() {
this.pool.drain().then(() => { this.pool.drain().then(() => {
return this.pool.clear() return this.pool.clear()
}).catch(err => {
logger.debug({message: err.message}, 'Pool draining error')
return this.pool.clear()
}).then(() => { }).then(() => {
this.createPool() this.createPool()
}) })