1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Fix propagation issue

This commit is contained in:
2022-03-12 08:02:58 +01:00
parent 09ce13c554
commit 366d9ee25c
4 changed files with 12 additions and 9 deletions

View File

@@ -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());