#412 - dont delay sending call status when stopping background listen

This commit is contained in:
Dave Horton
2023-08-02 12:37:23 -04:00
parent 9203deef0f
commit f975338232

View File

@@ -1761,7 +1761,8 @@ class CallSession extends Emitter {
// nice, call is in progress, good time to enable record // nice, call is in progress, good time to enable record
await this.enableRecordAllCall(); await this.enableRecordAllCall();
} else if (callStatus == CallStatus.Completed && this.isBackGroundListen) { } 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 */ /* race condition: we hang up at the same time as the caller */