diff --git a/lib/utils/action-hook-delay.js b/lib/utils/action-hook-delay.js index 656f8a8f..35bb26de 100644 --- a/lib/utils/action-hook-delay.js +++ b/lib/utils/action-hook-delay.js @@ -134,7 +134,9 @@ class ActionHookDelayProcessor extends Emitter { this.logger.debug({evt}, 'got playback-start'); if (!this._active) { this.logger.info({evt}, 'ActionHookDelayProcessor#_onNoResponseTimer: killing audio immediately'); - this.ep.api('uuid_break', this.ep.uuid) + + /* note: in race condition we may have just hung up and cs.ep cleared */ + this.ep?.api('uuid_break', this.ep?.uuid) .catch((err) => this.logger.info(err, 'ActionHookDelayProcessor#_onNoResponseTimer Error killing audio')); }