From 99ef2a8edc87d894895c3e6863f2717a11b7fe97 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Wed, 5 Jun 2019 17:04:54 +0200 Subject: [PATCH] Fix: Some Unknown Server Compile Problem. --- .../src/protocol/implementation/listen_forever.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/texture-sync-server/src/protocol/implementation/listen_forever.rs b/server/texture-sync-server/src/protocol/implementation/listen_forever.rs index b0813f5..cf11ae3 100644 --- a/server/texture-sync-server/src/protocol/implementation/listen_forever.rs +++ b/server/texture-sync-server/src/protocol/implementation/listen_forever.rs @@ -16,8 +16,9 @@ where // set timeouts. // We ignore errors here, so they will be caught in the clients thread. let _ = connection.as_mut().map(|stream| { - stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into())?; - stream.set_write_timeout(Duration::from_secs(config.write_timeout_s).into())?; + let _ = stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into()); + let _ = stream.set_write_timeout(Duration::from_secs(config.write_timeout_s).into()); + stream }); let handler = handler.clone();