From 61970ab1907af5511780460303e76edce02345e0 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 15 Mar 2018 17:11:49 -0700 Subject: [PATCH] always poll stream or actor for the first time --- src/pipeline.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pipeline.rs b/src/pipeline.rs index bd7801a36..b895be8c6 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -482,10 +482,14 @@ impl ProcessResponse { } match self.resp.replace_body(Body::Empty) { - Body::Streaming(stream) => - self.iostate = IOState::Payload(stream), - Body::Actor(ctx) => - self.iostate = IOState::Actor(ctx), + Body::Streaming(stream) => { + self.iostate = IOState::Payload(stream); + continue + }, + Body::Actor(ctx) => { + self.iostate = IOState::Actor(ctx); + continue + }, _ => (), }