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