From 6e780a3876afa0bf63e13389ebf4f48fc99785a2 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 30 Mar 2021 15:42:05 +0200 Subject: [PATCH] fix(xapi/call{,Async}): fix call to retry Introduced by 3bb7d2c29 --- @xen-orchestra/xapi/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@xen-orchestra/xapi/src/index.js b/@xen-orchestra/xapi/src/index.js index 373a73654..6ecc59459 100644 --- a/@xen-orchestra/xapi/src/index.js +++ b/@xen-orchestra/xapi/src/index.js @@ -142,7 +142,7 @@ exports.Xapi = Xapi function pRetryWrap(fn, options) { const getOptions = typeof options !== 'function' ? () => options : options return function () { - return pRetry.call(() => fn.apply(this, arguments), getOptions.apply(this, arguments)) + return pRetry(() => fn.apply(this, arguments), getOptions.apply(this, arguments)) } }