mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 00:33:17 +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