diff --git a/src/lib.rs b/src/lib.rs index a5af1c7..7cb4451 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,6 +86,7 @@ pub async fn send_to_wc_task( is_closed: Arc, mut sender: SplitSink>, tokio_tungstenite::tungstenite::Message> ) { + info!("From app is closed: {:?}", from_app.is_closed()); while let Ok(msg) = from_app.recv().await { #[cfg(debug_assertions)] { @@ -131,6 +132,8 @@ pub async fn listen_to_ws_task( mut reader: SplitStream>> ){ + info!("To_app is closed: {:?}", to_app.is_closed()); + while let Some(msg) = reader.next().await { match msg { Err(e) => {