Update Streamer class

This commit is contained in:
Christer Warén 2021-09-18 15:09:34 +03:00
parent 12db2c5fcc
commit 22bb8c7467

View File

@ -40,8 +40,9 @@ module.exports = class {
let streamers = this.map.keys(); let streamers = this.map.keys();
streamers.forEach(streamer => { streamers.forEach(streamer => {
if(client.stations.findIndex(station => station.name == streamer) == -1) return; if(client.stations.findIndex(station => station.name == streamer) == -1){
this.stop(streamer); this.stop(streamer);
}
}); });
} }