This commit is contained in:
zadam
2020-06-13 22:34:15 +02:00
parent 5d47c2b23e
commit 0df7851214
4 changed files with 8 additions and 8 deletions

View File

@@ -320,10 +320,10 @@ function timeLimit(promise, limitMs) {
return new Promise((res, rej) => {
let resolved = false;
promise.then(() => {
promise.then(result => {
resolved = true;
res();
res(result);
});
setTimeout(() => {