fix(Xapi#_sessionCall): must pCatch when there is a predicate

This commit is contained in:
Julien Fontanet 2016-05-17 10:40:59 +02:00
parent c3dc136de4
commit 155f2fc36c

View File

@ -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)