mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
remove dlg event handlers on destroy
This commit is contained in:
@@ -277,6 +277,8 @@ class CallSession extends Emitter {
|
||||
}).catch((err) => this.logger.error({err}, 'Error writing cdr for completed call'));
|
||||
}
|
||||
/* de-link the 2 Dialogs for GC */
|
||||
dlg.removeAllListeners();
|
||||
other.removeAllListeners();
|
||||
dlg.other = null;
|
||||
other.other = null;
|
||||
this.srf.endSession(this.req);
|
||||
|
||||
Reference in New Issue
Block a user