Remove session from sessions map on logout for auth providers

This commit is contained in:
Rachel Macfarlane
2020-04-15 16:14:56 -07:00
parent 7130a3340b
commit 456baffe47

View File

@@ -236,6 +236,7 @@ export class MainThreadAuthenticationProvider extends Disposable {
removed.forEach(sessionId => {
const accountName = this._sessions.get(sessionId);
if (accountName) {
this._sessions.delete(sessionId);
let sessionsForAccount = this._accounts.get(accountName) || [];
const sessionIndex = sessionsForAccount.indexOf(sessionId);
sessionsForAccount.splice(sessionIndex);