1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Use the right error object

This commit is contained in:
Travis Ralston
2019-04-15 19:46:30 -06:00
parent b5779f8654
commit 14973a35c2

View File

@@ -446,7 +446,7 @@ SyncApi.prototype._wasLazyLoadingToggled = async function(lazyLoadMembers) {
}; };
SyncApi.prototype._shouldAbortSync = function(error) { SyncApi.prototype._shouldAbortSync = function(error) {
if (err.errcode === "M_UNKNOWN_TOKEN") { if (error.errcode === "M_UNKNOWN_TOKEN") {
// The logout already happened, we just need to stop. // The logout already happened, we just need to stop.
console.warn("Token no longer valid - assuming logout"); console.warn("Token no longer valid - assuming logout");
self.stop(); self.stop();