diff --git a/src/actor/session.rs b/src/actor/session.rs index 61bfcab..9403fa4 100644 --- a/src/actor/session.rs +++ b/src/actor/session.rs @@ -37,10 +37,12 @@ impl Session { ctx.state().ws.do_send(Disconnect { id: actor.0 }); ctx.stop(); + + return; } - }); - ctx.ping(""); + ctx.ping(""); + }); } } @@ -69,4 +71,4 @@ impl StreamHandler for Session { } } } -} \ No newline at end of file +}