fgdfgf
This commit is contained in:
@@ -40,10 +40,9 @@ class PoolingService {
|
||||
return driver.getSession().then(s => {
|
||||
logger.info('Driver session validation checked (id: %s)', s.getId())
|
||||
return true
|
||||
}).catch(err => {
|
||||
this.pool.destroy(driver)
|
||||
}).catch(err => {
|
||||
logger.debug({ message: err.message }, 'Driver session expired and destroy it')
|
||||
return false
|
||||
return this.pool.destroy(driver).then(() => false)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user