1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

always start actors

This commit is contained in:
Nikolay Kim
2018-03-16 07:46:27 -07:00
parent 5368ce823e
commit 5baf15822a
3 changed files with 3 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ impl<A, S> ActorHttpContext for HttpContext<A, S> where A: Actor<Context=Self>,
mem::transmute(self as &mut HttpContext<A, S>)
};
if self.inner.alive() {
if self.inner.started() && self.inner.alive() {
match self.inner.poll(ctx) {
Ok(Async::NotReady) | Ok(Async::Ready(())) => (),
Err(_) => return Err(ErrorInternalServerError("error").into()),