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(())