This commit is contained in:
Bruno Windels 2020-11-05 21:19:34 +01:00
parent b27f6a067f
commit 9f453c0984

View file

@ -44,7 +44,7 @@ export class LoginViewModel extends ViewModel {
async login(username, password, homeserver) {
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
if (this._loadViewModel) {
this._loadViewModel.cancel();
this._loadViewModel = this.disposeTracked(this._loadViewModel);
}
this._loadViewModel = this.track(new SessionLoadViewModel({
createAndStartSessionContainer: () => {