diff --git a/src/common/clientpool.rs b/src/common/clientpool.rs index e8b94bd..d9541ec 100644 --- a/src/common/clientpool.rs +++ b/src/common/clientpool.rs @@ -138,13 +138,10 @@ impl ClientPool where let mut events = Events::with_capacity(1024); - println!("looping"); loop { self.poll.poll(&mut events, None).unwrap(); - println!("events! {:?}", events); for event in &events { - println!("event! {:?}", event); match event.token() { Token(0) => self.new_client(), Token(1) => self.packet_to_send(), @@ -167,6 +164,7 @@ impl ClientPool where match client_read(&self.sender, client) { Ok(()) =>{}, Err(err) => { + println!("pkt err: {:?}", err); match err { PacketNetworkError::ClientDisconnected => { self.poll.deregister(&client.socket).unwrap();