memory leak fixes

This commit is contained in:
Dave Horton
2022-02-08 20:29:54 -05:00
parent cfe9397502
commit de83f735ea
5 changed files with 37 additions and 31 deletions

View File

@@ -215,6 +215,7 @@ class SingleDialer extends Emitter {
if (this.confirmHook) this._executeApp(this.confirmHook);
else this.emit('accept');
} catch (err) {
this.inviteInProgress = null;
const status = {callStatus: CallStatus.Failed};
if (err instanceof SipError) {
status.sipStatus = err.status;