From 22bb8c7467682a161bba34bdc1a29d8f12e2bebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 18 Sep 2021 15:09:34 +0300 Subject: [PATCH] Update Streamer class --- src/client/classes/Streamer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/classes/Streamer.js b/src/client/classes/Streamer.js index 9215412..acfb09c 100644 --- a/src/client/classes/Streamer.js +++ b/src/client/classes/Streamer.js @@ -40,8 +40,9 @@ module.exports = class { let streamers = this.map.keys(); streamers.forEach(streamer => { - if(client.stations.findIndex(station => station.name == streamer) == -1) return; - this.stop(streamer); + if(client.stations.findIndex(station => station.name == streamer) == -1){ + this.stop(streamer); + } }); }