changeset 12134 | 07972a8c2433 |
parent 12133 | f50876f3eff8 |
child 12141 | e25a82ce2374 |
--- a/gameServer2/src/server/server.rs Mon Jan 02 00:16:22 2017 +0300 +++ b/gameServer2/src/server/server.rs Tue Jan 03 00:19:47 2017 +0300 @@ -31,7 +31,7 @@ } pub fn accept(&mut self, poll: &Poll) -> io::Result<()> { - let (sock, addr) = self.listener.accept().unwrap(); + let (sock, addr) = self.listener.accept()?; println!("Connected: {}", addr); let client = HWClient::new(sock);