diff --git a/lib/session/call-session.js b/lib/session/call-session.js index bef33c60..22c93cc0 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -1761,7 +1761,8 @@ class CallSession extends Emitter { // nice, call is in progress, good time to enable record await this.enableRecordAllCall(); } else if (callStatus == CallStatus.Completed && this.isBackGroundListen) { - await this.stopBackgroundListen(); + this.stopBackgroundListen().catch((err) => this.logger.error( + {err}, 'CallSession:_notifyCallStatusChange - error stopping background listen')); } /* race condition: we hang up at the same time as the caller */