Update Streamer class

This commit is contained in:
Christer Warén 2021-09-11 23:12:39 +03:00
parent 49475212a7
commit ffa9c8abb0

View File

@ -25,6 +25,12 @@ module.exports = class {
refresh(client){
this.init(client);
let streamers = this.map.keys();
streamers.forEach(streamer => {
if(client.stations.findIndex(station => station.name == streamer)) return;
this.map.delete(streamer);
});
}
play(station) {