1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +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

@ -204,7 +204,7 @@ impl<A, S> ActorHttpContext for WebsocketContext<A, S> where A: Actor<Context=Se
mem::transmute(self as &mut WebsocketContext<A, S>)
};
if self.inner.alive() && self.inner.poll(ctx).is_err() {
if self.inner.started() && self.inner.alive() && self.inner.poll(ctx).is_err() {
return Err(ErrorInternalServerError("error").into())
}