Mini cleanup.
authorUmmon <greg.burri@gmail.com>
Tue, 4 Nov 2014 06:51:33 +0000 (07:51 +0100)
committerUmmon <greg.burri@gmail.com>
Tue, 4 Nov 2014 06:51:33 +0000 (07:51 +0100)
src/end_point.rs

index b44afc9..71f217e 100644 (file)
@@ -32,10 +32,10 @@ impl Server {
          loop {
             for stream in acceptor.incoming() {
                match stream {
-                  Err(_) => return,
                   Ok(stream) => spawn(proc() {
                      Server::handle_client(EndPoint { socket: stream, current_timestamp: 0 });
-                  })
+                  }),
+                  _ => return
                }
             }
          }