Update Streamer class

This commit is contained in:
Christer Warén 2021-09-14 18:02:11 +03:00
parent 24478b6320
commit 7040300b3e

View File

@ -56,12 +56,10 @@ module.exports = class {
}) })
.on("finish", () => { .on("finish", () => {
this.logger('Streamer', station.name + " / " + "Finished"); this.logger('Streamer', station.name + " / " + "Finished");
this.map.delete(station.name);
this.play(station); this.play(station);
}) })
.on("error", error => { .on("error", error => {
this.logger('Streamer', station.name + " / " + "Error"); this.logger('Streamer', station.name + " / " + "Error");
this.map.delete(station.name);
this.play(station); this.play(station);
}); });
return audioPlayer; return audioPlayer;