1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

update examples

This commit is contained in:
Nikolay Kim
2018-02-15 13:59:25 -08:00
parent 7b0e1642b6
commit d31e71a169
5 changed files with 8 additions and 11 deletions

View File

@ -66,13 +66,11 @@ impl Actor for ChatClient {
self.hb(ctx)
}
fn stopping(&mut self, _: &mut Context<Self>) -> bool {
println!("Stopping");
fn stopped(&mut self, _: &mut Context<Self>) {
println!("Disconnected");
// Stop application on disconnect
Arbiter::system().do_send(actix::msgs::SystemExit(0));
true
}
}