gameServer2/src/server/server.rs
changeset 13422 5fb27f94fc3b
parent 13419 81e0ed105f5d
child 13426 f091f69d59e4
--- a/gameServer2/src/server/server.rs	Sun Jun 24 12:09:31 2018 -0400
+++ b/gameServer2/src/server/server.rs	Tue Jun 26 23:22:38 2018 +0300
@@ -69,8 +69,7 @@
             Destination::ToAll {protocol: Some(proto), ..} =>
                 self.protocol_clients(proto),
             Destination::ToAll {..} =>
-                self.clients.iter().map(|(id, _)| id).collect::<Vec<_>>(),
-            _ => Vec::new()
+                self.clients.iter().map(|(id, _)| id).collect::<Vec<_>>()
         };
         if let Destination::ToAll {skip_self: true, ..} = destination {
             if let Some(index) = ids.iter().position(|id| *id == client_id) {