From ed0f83800d2e1f68b82a233dee91745ba4031cfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 6 Oct 2021 09:07:43 +0200 Subject: [PATCH] Fix callback invocation in promiseWithTimeout() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 6133177f..50240126 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -244,7 +244,7 @@ export default class Utils { // Create a timeout promise that rejects in timeout milliseconds const timeoutPromise = new Promise((_, reject) => { setTimeout(() => { - timeoutCallback; + timeoutCallback(); reject(timeoutError); }, timeoutMs); }); -- 2.34.1