From cc08de9c64017b07a91f0556b6c0a4986dd38ddf Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 11 Aug 2016 01:13:52 +0100 Subject: [PATCH] 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. --- lib/sync.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sync.js b/lib/sync.js index 24c77a2ca..fcc992746 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -455,6 +455,7 @@ SyncApi.prototype._sync = function(syncOptions) { self._connectionReturnedDefer = null; } this._updateSyncState("STOPPED"); + return; } var filterId = syncOptions.filterId;