Skip to content

Commit

Permalink
Fixing former fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissn committed Feb 5, 2018
1 parent 96e3323 commit 414807e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 414807e

Please sign in to comment.