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

Make sure we actually stop the sync loop on logout

I think this was only a problem in the edgiest of edge conditions, but it
certainly didn't look right.
This commit is contained in:
Richard van der Hoff
2016-08-11 01:13:52 +01:00
parent 6432a64442
commit cc08de9c64

View File

@@ -455,6 +455,7 @@ SyncApi.prototype._sync = function(syncOptions) {
self._connectionReturnedDefer = null; self._connectionReturnedDefer = null;
} }
this._updateSyncState("STOPPED"); this._updateSyncState("STOPPED");
return;
} }
var filterId = syncOptions.filterId; var filterId = syncOptions.filterId;