diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 14c6b1d5..745a8606 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -796,7 +796,11 @@ class CallSession extends Emitter { } } - if (0 === this.tasks.length && this.requestor instanceof WsRequestor && !this.callGone) { + if (0 === this.tasks.length && + this.requestor instanceof WsRequestor && + !this.requestor.this.closedGracefully && + !this.callGone + ) { try { await this._awaitCommandsOrHangup(); if (this.callGone) break;