From 7e97255acbfc492a00ee3bb10680744df182938a Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Sat, 16 Jul 2022 19:28:09 -0700 Subject: [PATCH] added some closing thread debug prints --- src/modules/socket_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/socket_handler.rs b/src/modules/socket_handler.rs index a2ad0b3..1a01b64 100644 --- a/src/modules/socket_handler.rs +++ b/src/modules/socket_handler.rs @@ -24,6 +24,7 @@ impl Socket { let thread_owned_streams = Arc::clone(&socket_streams); + println!("initializing socket connection handling thread"); let handle = thread::spawn(move || { listener.set_nonblocking(true).unwrap(); let mut service_sockets: Vec> = Vec::new(); @@ -39,7 +40,7 @@ impl Socket { Socket::service_clients(&mut service_sockets, messenger_tx.clone()); thread::sleep(Duration::from_millis(100)); } - println!("closed socket loop"); + println!("closed socket connection handling thread"); drop(listener); });