Update Streamer class

This commit is contained in:
Christer Warén 2021-09-14 17:12:30 +03:00
parent 81a9d7be7c
commit 930d481fcf

View File

@ -69,7 +69,10 @@ module.exports = class {
stop(station){ stop(station){
let audioPlayer = this.map.get(station.name); let audioPlayer = this.map.get(station.name);
audioPlayer?.stop(); if(audioPlayer){
this.logger('Streamer', station.name + " / " + "Stop");
audioPlayer.stop();
}
this.map.delete(station.name); this.map.delete(station.name);
} }