mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +00:00
Update Streamer class
This commit is contained in:
parent
12f3948e40
commit
bfec178de7
@ -38,12 +38,13 @@ module.exports = class {
|
||||
logger('Streamer', station.name + " / " + "Error");
|
||||
this.map.delete(station.name);
|
||||
});
|
||||
return audioPlayer;
|
||||
}
|
||||
|
||||
listen(station) {
|
||||
let audioPlayer = this.map.get(station.name);
|
||||
if(!audioPlayer){
|
||||
this.play(station);
|
||||
audioPlayer = this.play(station);
|
||||
}
|
||||
return audioPlayer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user