diff --git a/lib/tasks/dial.js b/lib/tasks/dial.js index f6a66102..3250bf42 100644 --- a/lib/tasks/dial.js +++ b/lib/tasks/dial.js @@ -230,10 +230,10 @@ class TaskDial extends Task { try { await this.epOther.play(this.dialMusic); } catch (err) { - this.logger.error(err, `TaskDial:exec error playing ${this.dialMusic}`); + this.logger.error(err, `TaskDial:exec error playing dialMusic ${this.dialMusic}`); await sleepFor(1000); } - } while (!this.killed || !this.bridged); + } while (!this.killed && !this.bridged && this._mediaPath === MediaPath.FullMedia); })(); } }