diff --git a/src/ws/context.rs b/src/ws/context.rs index 33f6f696..77d8a8ae 100644 --- a/src/ws/context.rs +++ b/src/ws/context.rs @@ -58,8 +58,8 @@ impl AsyncContext for WebsocketContext where A: Actor bool { - self.inner.wating() || self.inner.start() == ActorState::Stopping || - self.inner.start() == ActorState::Stopped + self.inner.wating() || self.inner.state() == ActorState::Stopping || + self.inner.state() == ActorState::Stopped } fn cancel_future(&mut self, handle: SpawnHandle) -> bool {