diff --git a/application/routes.js b/application/routes.js index f73a748..5febc3e 100644 --- a/application/routes.js +++ b/application/routes.js @@ -137,7 +137,7 @@ io.on('connection', (socket) => { if(rooms[deckID].some((room2) => room2.roomName === room)) { try { rooms[deckID].find((x) => x.roomName === room).twitterStream.destroy();//close twitter stream - } catch (e) {return;} + } catch (e) {}//eslint-disable-line rooms[deckID] = rooms[deckID].filter((x) => x.roomName !== room);//remove from array if(rooms[deckID].length === 0) delete rooms[deckID];