This commit is contained in:
spiduler
2020-10-25 03:48:29 +09:00
parent 3d934f7a02
commit eef5c94a70

View File

@@ -20,14 +20,17 @@ class SeleniumBrowser {
} }
reCreatePool() { reCreatePool() {
this.pool.drain().then(() => { delete this.pool
return this.pool.clear() this.pool = null
}).catch(err => { this.createPool
logger.debug({message: err.message}, 'Pool draining error') // this.pool.drain().then(() => {
return this.pool.clear() // return this.pool.clear()
}).then(() => { // }).catch(err => {
this.createPool() // logger.debug({message: err.message}, 'Pool draining error')
}) // return this.pool.clear()
// }).then(() => {
// this.createPool()
// })
} }
createPool() { createPool() {