Fix reconnecting on request error
This commit is contained in:
@@ -302,6 +302,9 @@ export function callOnce(func, promiseKeeper) {
|
||||
.then(result => {
|
||||
promiseKeeper = null;
|
||||
return result;
|
||||
}).catch(err => {
|
||||
promiseKeeper = null;
|
||||
throw err;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -65,6 +65,9 @@ function callOnce(func, promiseKeeper, funcScope) {
|
||||
.then(result => {
|
||||
promiseKeeper[hash] = null;
|
||||
return result;
|
||||
}).catch(err => {
|
||||
promiseKeeper[hash] = null;
|
||||
throw err;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user