1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-25 14:46:04 +02:00

update examples

This commit is contained in:
Nikolay Kim
2018-01-06 23:22:10 -08:00
parent 71da72efdb
commit 896981cdf8
5 changed files with 11 additions and 6 deletions

View File

@@ -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
}
}