mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Fix propagation issue
This commit is contained in:
@@ -320,13 +320,12 @@ impl Actor for WsSession {
|
||||
let future = async move {
|
||||
if let Err(e) = events_helper::propagate_event(Event::UserWsClosed(conn)).await {
|
||||
eprintln!("Failed to propagate web socket closed event ! {:#?}", e);
|
||||
} else {
|
||||
eprintln!("Successfully propagated user ws stopping event!");
|
||||
}
|
||||
|
||||
// TODO : remove
|
||||
eprintln!("Successfully propagated user ws stopping event!");
|
||||
};
|
||||
|
||||
future.into_actor(self).wait(ctx);
|
||||
futures::executor::block_on(future);
|
||||
}
|
||||
|
||||
remove_connection(ctx.address());
|
||||
|
Reference in New Issue
Block a user