mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
always poll stream or actor for the first time
This commit is contained in:
parent
484b00a0f9
commit
61970ab190
@ -482,10 +482,14 @@ impl<S: 'static, H> ProcessResponse<S, H> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
match self.resp.replace_body(Body::Empty) {
|
match self.resp.replace_body(Body::Empty) {
|
||||||
Body::Streaming(stream) =>
|
Body::Streaming(stream) => {
|
||||||
self.iostate = IOState::Payload(stream),
|
self.iostate = IOState::Payload(stream);
|
||||||
Body::Actor(ctx) =>
|
continue
|
||||||
self.iostate = IOState::Actor(ctx),
|
},
|
||||||
|
Body::Actor(ctx) => {
|
||||||
|
self.iostate = IOState::Actor(ctx);
|
||||||
|
continue
|
||||||
|
},
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user