Set finished to true when aborting

This commit is contained in:
RMidhunSuresh 2023-05-08 21:47:23 +05:30
parent 7c2ffcb8de
commit f049e013a7

View File

@ -91,6 +91,7 @@ export class SASVerification extends EventEmitter<SASProgressEvents> implements
async abort(): Promise<void> { async abort(): Promise<void> {
await this.channel.cancelVerification(CancelReason.UserCancelled); await this.channel.cancelVerification(CancelReason.UserCancelled);
this.finished = true;
} }
async verify(): Promise<boolean> { async verify(): Promise<boolean> {