bugfix: mem leak

This commit is contained in:
Dave Horton
2022-04-05 19:57:03 -04:00
parent d10bda2926
commit 1dfeed3ac8

View File

@@ -427,7 +427,7 @@ class CallSession extends Emitter {
this.activeCallIds.delete(this.req.get('Call-ID'));
this.unsubscribeDTMF(this.logger, this.req.get('Call-ID'), this.rtpEngineOpts.uac.tag);
try {
other.destroy();
await other.destroy();
} catch (err) {}
this.decrKey(this.callCountKey)