diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js index d853c95716f8..107a566ca1b6 100644 --- a/services/sync/modules/service.js +++ b/services/sync/modules/service.js @@ -743,6 +743,10 @@ WeaveSvc.prototype = { })))(), logout: function WeaveSvc_logout() { + // No need to do anything if we're already logged out + if (!this._loggedIn) + return; + this._log.info("Logging out"); this._loggedIn = false; this._keyPair = {};