From 155f2fc36c98cb32da6d15672e86edb172a29f42 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 17 May 2016 10:40:59 +0200 Subject: [PATCH] fix(Xapi#_sessionCall): must pCatch when there is a predicate --- packages/xen-api/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index c35782dad..610834bbd 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -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)