mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix dialMusic keep running in infinity loop (#1085)
This commit is contained in:
@@ -230,10 +230,10 @@ class TaskDial extends Task {
|
|||||||
try {
|
try {
|
||||||
await this.epOther.play(this.dialMusic);
|
await this.epOther.play(this.dialMusic);
|
||||||
} catch (err) {
|
} 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);
|
await sleepFor(1000);
|
||||||
}
|
}
|
||||||
} while (!this.killed || !this.bridged);
|
} while (!this.killed && !this.bridged && this._mediaPath === MediaPath.FullMedia);
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user