Abort SAS when disposing vm

This commit is contained in:
RMidhunSuresh 2023-03-30 15:47:25 +05:30
parent e78580c4ef
commit 3f5e2af093

View File

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