mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Update Streamer class
This commit is contained in:
parent
c1ee0f4bc6
commit
5181a2a419
@ -87,7 +87,6 @@ module.exports = class {
|
||||
})
|
||||
.on('idle', () => {
|
||||
this.logger('Streamer', station.name + " / " + "Idle");
|
||||
this.stop(station);
|
||||
this.play(station);
|
||||
})
|
||||
.on('paused', () => {
|
||||
@ -109,6 +108,7 @@ module.exports = class {
|
||||
let audioPlayer = this.map.get(station.name);
|
||||
if(audioPlayer){
|
||||
this.logger('Streamer', station.name + " / " + "Stop");
|
||||
audioPlayer.removeAllListeners();
|
||||
audioPlayer.stop();
|
||||
}
|
||||
this.map.delete(station.name);
|
||||
|
Loading…
Reference in New Issue
Block a user