Skip to content

Commit

Permalink
fixed room bug
Browse files Browse the repository at this point in the history
  • Loading branch information
heegupark committed Aug 4, 2020
1 parent a12a1dc commit 4736bf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ io.on('connection', socket => {
});

socket.on('refresh-room', (data, callback) => {
const newRooms = rooms.filter(room => room.players.length !== 0);
rooms = [...newRooms];
socket.emit(`room-${data.roomId}`, { success: true, rooms });
});

Expand Down

0 comments on commit 4736bf3

Please sign in to comment.