1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Use the right this in _shouldAbortSync

This commit is contained in:
Travis Ralston
2019-04-15 21:04:29 -06:00
parent deb7433453
commit 491226a916

View File

@@ -449,7 +449,7 @@ SyncApi.prototype._shouldAbortSync = function(error) {
if (error.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(); this.stop();
return true; return true;
} }
return false; return false;