Fix reconnecting on request error

This commit is contained in:
Alexander Zobnin
2020-08-06 15:15:38 +03:00
parent 83077f6723
commit 47bbf55e54
2 changed files with 6 additions and 0 deletions

View File

@@ -302,6 +302,9 @@ export function callOnce(func, promiseKeeper) {
.then(result => {
promiseKeeper = null;
return result;
}).catch(err => {
promiseKeeper = null;
throw err;
})
);
}

View File

@@ -65,6 +65,9 @@ function callOnce(func, promiseKeeper, funcScope) {
.then(result => {
promiseKeeper[hash] = null;
return result;
}).catch(err => {
promiseKeeper[hash] = null;
throw err;
})
);
}