mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Abort SAS when disposing vm
This commit is contained in:
parent
e78580c4ef
commit
3f5e2af093
@ -90,6 +90,13 @@ export class DeviceVerificationViewModel extends ErrorReportViewModel<SegmentTyp
|
||||
this.emitChange("currentStageViewModel");
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
if (!this.sas.finished) {
|
||||
this.sas.abort().catch(() => {/** ignore */});
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
get currentStageViewModel() {
|
||||
return this._currentStageViewModel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user