mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix bug from prev checkin, destroy does not return a promise
This commit is contained in:
@@ -718,10 +718,7 @@ class CallSession extends Emitter {
|
|||||||
*/
|
*/
|
||||||
_clearResources() {
|
_clearResources() {
|
||||||
for (const resource of [this.dlg, this.ep]) {
|
for (const resource of [this.dlg, this.ep]) {
|
||||||
if (resource && resource.connected) {
|
if (resource && resource.connected) resource.destroy();
|
||||||
resource.destroy()
|
|
||||||
.catch((err) => this.logger.error(err, 'CallSession:_clearResources error'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.dlg = null;
|
this.dlg = null;
|
||||||
this.ep = null;
|
this.ep = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user