fix(Xapi#_sessionCall): must pCatch when there is a predicate
This commit is contained in:
parent
c3dc136de4
commit
155f2fc36c
@ -407,7 +407,7 @@ export class Xapi extends EventEmitter {
|
||||
}
|
||||
|
||||
return this._transportCall(method, [this.sessionId].concat(args))
|
||||
.catch(isSessionInvalid, () => {
|
||||
::pCatch(isSessionInvalid, () => {
|
||||
// XAPI is sometimes reinitialized and sessions are lost.
|
||||
// Try to login again.
|
||||
debug('%s: the session has been reinitialized', this._humanId)
|
||||
|
Loading…
Reference in New Issue
Block a user