Merge pull request #241 from DrPandemic/logout-clean-session

Fix logout session storage
This commit is contained in:
Anthony Lavado 2019-04-29 23:50:35 -04:00 committed by GitHub
commit d33d0ea3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,7 @@ define(["events", "appStorage"], function(events, appStorage) {
}, ApiClient.prototype.logout = function() {
stopBitrateDetection(this), this.closeWebSocket();
var done = function() {
appStorage.removeItem("user-" + this._currentUser.Id + "-" + this._currentUser.ServerId)
this.setAuthenticationInfo(null, null)
}.bind(this);
if (this.accessToken()) {