Don't try logging out when already logged out -- about:weave calls logout which tries to _log, but Fennec weave hasn't loaded Weave yet.

This commit is contained in:
Edward Lee 2009-09-30 15:16:56 -07:00
Родитель fbb222d35d
Коммит a2514cee67
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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 = {};