gameServer2/src/server/server.rs
changeset 12146 8d8fb85bc09c
parent 12144 589a2d7d3dc5
child 12147 03ccb89820f3
--- a/gameServer2/src/server/server.rs	Thu Jan 26 14:45:44 2017 +0300
+++ b/gameServer2/src/server/server.rs	Fri Jan 27 23:03:31 2017 +0300
@@ -37,10 +37,11 @@
         let (sock, addr) = self.listener.accept()?;
         info!("Connected: {}", addr);
 
-        let client = HWClient::new(sock, &self.lobby_id);
+        let client = HWClient::new(sock);
         let token = self.clients.insert(client)
             .ok().expect("could not add connection to slab");
 
+        self.clients[token].id = token;
         self.clients[token].register(poll, token);
 
         Ok(())