rust/hedgewars-server/src/server/network.rs
changeset 14801 f5d43f007970
parent 14800 add191d825f4
child 14808 92225a708bda
--- a/rust/hedgewars-server/src/server/network.rs	Fri Apr 12 22:36:54 2019 +0300
+++ b/rust/hedgewars-server/src/server/network.rs	Fri Apr 12 23:16:44 2019 +0300
@@ -498,9 +498,7 @@
             Ok((messages, state)) => {
                 for message in messages {
                     debug!("Handling message {:?} for client {}", message, client_id);
-                    if self.server.clients.contains(client_id) {
-                        handlers::handle(&mut self.server, client_id, &mut response, message);
-                    }
+                    handlers::handle(&mut self.server, client_id, &mut response, message);
                 }
                 match state {
                     NetworkClientState::NeedsRead => {