repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c0c2a1
)
Fix callback invocation in promiseWithTimeout()
author
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 6 Oct 2021 07:07:43 +0000
(09:07 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 6 Oct 2021 07:07:43 +0000
(09:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Utils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 6133177f9aeca78c7970b2a123370d9d187f24c9..502401263e2d8b89097857a59e084dcabc837f22 100644
(file)
--- 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<never>((_, reject) => {
setTimeout(() => {
- timeoutCallback;
+ timeoutCallback
()
;
reject(timeoutError);
}, timeoutMs);
});