mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33:18 +00:00
Update Streamer class
This commit is contained in:
parent
81a9d7be7c
commit
930d481fcf
@ -69,7 +69,10 @@ module.exports = class {
|
||||
|
||||
stop(station){
|
||||
let audioPlayer = this.map.get(station.name);
|
||||
audioPlayer?.stop();
|
||||
if(audioPlayer){
|
||||
this.logger('Streamer', station.name + " / " + "Stop");
|
||||
audioPlayer.stop();
|
||||
}
|
||||
this.map.delete(station.name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user