You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
No point throwing the exception if we return the original promise
This commit is contained in:
@@ -278,7 +278,6 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
if (err.errcode == 'M_UNKNOWN_TOKEN') {
|
if (err.errcode == 'M_UNKNOWN_TOKEN') {
|
||||||
self.event_emitter.emit("Session.logged_out");
|
self.event_emitter.emit("Session.logged_out");
|
||||||
}
|
}
|
||||||
throw err;
|
|
||||||
});
|
});
|
||||||
// return the original promise, otherwise tests break due to it having to
|
// return the original promise, otherwise tests break due to it having to
|
||||||
// go around the event loop one more time to process the result of the request
|
// go around the event loop one more time to process the result of the request
|
||||||
|
|||||||
Reference in New Issue
Block a user