From 148adf7e5ffe25dba11e00b17b29e4eeacec4d3d Mon Sep 17 00:00:00 2001 From: Ummon Date: Tue, 4 Nov 2014 07:51:33 +0100 Subject: [PATCH] Mini cleanup. --- src/end_point.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/end_point.rs b/src/end_point.rs index b44afc9..71f217e 100644 --- a/src/end_point.rs +++ b/src/end_point.rs @@ -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 } } } -- 2.45.2