mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 09:53:18 +00:00
Update Streamer class
This commit is contained in:
parent
b4f2ece9bf
commit
3f3aab4c22
@ -106,7 +106,8 @@ module.exports = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
listen(station) {
|
listen(station) {
|
||||||
let audioPlayer = this.play(station);
|
let audioPlayer = this.map.get(station.name);
|
||||||
|
if(!audioPlayer || this.mode == "manual" && audioPlayer.subscribers.length != 0) audioPlayer = this.play(station);
|
||||||
return audioPlayer;
|
return audioPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user