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() {
this.pool.drain().then(() => {
return this.pool.clear()
}).catch(err => {
logger.debug({message: err.message}, 'Pool draining error')
return this.pool.clear()
}).then(() => {
this.createPool()
})
delete this.pool
this.pool = null
this.createPool
// this.pool.drain().then(() => {
// return this.pool.clear()
// }).catch(err => {
// logger.debug({message: err.message}, 'Pool draining error')
// return this.pool.clear()
// }).then(() => {
// this.createPool()
// })
}
createPool() {