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