mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
stop websocket context
This commit is contained in:
@ -58,7 +58,8 @@ impl<A, S> AsyncContext<A> for WebsocketContext<A, S> where A: Actor<Context=Sel
|
||||
#[doc(hidden)]
|
||||
#[inline]
|
||||
fn waiting(&self) -> bool {
|
||||
self.inner.wating()
|
||||
self.inner.wating() || self.inner.start() == ActorState::Stopping ||
|
||||
self.inner.start() == ActorState::Stopped
|
||||
}
|
||||
|
||||
fn cancel_future(&mut self, handle: SpawnHandle) -> bool {
|
||||
|
Reference in New Issue
Block a user