Skip to content

Commit

Permalink
Fix sending of websocket messages to players. Closes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 23, 2023
1 parent d83a6f8 commit d67c0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/handler/lobbies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ pub async fn start_game(
lobby_chat_uuid: *lobby.chat_room.key(),
};

for p in player.into_iter().filter(|x| *x == uuid) {
for p in player.into_iter().filter(|x| *x != uuid) {
if let Err(err) = ws_manager_chan
.send(WsManagerMessage::SendMessage(p, msg.clone()))
.await
Expand Down

0 comments on commit d67c0c4

Please sign in to comment.