mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-25 14:46:04 +02:00
update examples
This commit is contained in:
@@ -75,9 +75,10 @@ impl Actor for WsChatSession {
|
||||
}).wait(ctx);
|
||||
}
|
||||
|
||||
fn stopping(&mut self, ctx: &mut Self::Context) {
|
||||
fn stopping(&mut self, ctx: &mut Self::Context) -> bool {
|
||||
// notify chat server
|
||||
ctx.state().addr.send(server::Disconnect{id: self.id});
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user