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