From 8b0fbb85d135435c62325408f7e00a1d80b6f63a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 21 Jun 2018 09:47:28 +0600 Subject: [PATCH] SendRequest execution fails with the entered unreachable code #329 --- CHANGES.md | 6 ++++++ src/client/pipeline.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 30a31bfb4..b8c4b7e60 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -52,8 +52,14 @@ ## [0.6.14] - 2018-06-21 +### Added + * Allow to disable masking for websockets client +### Fixed + +* SendRequest execution fails with the "internal error: entered unreachable code" #329 + ## [0.6.13] - 2018-06-11 diff --git a/src/client/pipeline.rs b/src/client/pipeline.rs index e77894b24..50318a16f 100644 --- a/src/client/pipeline.rs +++ b/src/client/pipeline.rs @@ -392,7 +392,7 @@ impl Pipeline { match self.timeout.as_mut().unwrap().poll() { Ok(Async::Ready(())) => return Err(SendRequestError::Timeout), Ok(Async::NotReady) => (), - Err(_) => return Err(SendRequestError::Timeout), + Err(e) => return Err(e.into()), } } Ok(())