Browse Source

remove printlns

pbs
jake 5 years ago
parent
commit
c1b40f63e1
  1. 4
      src/common/clientpool.rs

4
src/common/clientpool.rs

@ -138,13 +138,10 @@ impl<S, R> ClientPool<S, R> 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<S, R> ClientPool<S, R> where
match client_read(&self.sender, client) {
Ok(()) =>{},
Err(err) => {
println!("pkt err: {:?}", err);
match err {
PacketNetworkError::ClientDisconnected => {
self.poll.deregister(&client.socket).unwrap();

Loading…
Cancel
Save