Mini cleanup.
[crypto_lab1.git] / 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
                }
             }
          }