Skip to content

Commit

Permalink
Filter only user, that has disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 27, 2023
1 parent 3f0b900 commit ff662fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chan/ws_manager_chan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pub async fn start_ws_manager(db: Database) -> Result<WsManagerChan, String> {
.cached
.unwrap()
.into_iter()
.filter(|x| *x.player.key() == uuid)
.filter(|x| *x.player.key() != uuid)
.map(|x| *x.player.key()),
) {
if let Err(err) = cleanup_tx
Expand Down

0 comments on commit ff662fe

Please sign in to comment.