catch exceptions from req.cancel() (#1359)

* catch exceptions from req.cancel()

* catch other instances of req.cancel

* fix prev commit
This commit is contained in:
Dave Horton
2025-09-11 12:25:36 -04:00
committed by GitHub
parent 057f52e56c
commit 65b3066866
3 changed files with 28 additions and 7 deletions

View File

@@ -1415,7 +1415,11 @@ class CallSession extends Emitter {
}
else {
if (this.req && !this.dlg) {
this.req.cancel();
try {
this.req.cancel();
} catch (err) {
this.logger.error({err}, 'CallSession:_lccCallStatus error cancelling request');
}
this._callReleased();
}
}