dsfdsf
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user