diff --git a/src/lib.rs b/src/lib.rs index 77e6155..766cd4c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ use std::{ str::from_utf8, sync::Arc, }; -use tokio::sync::Mutex; +use tokio::{signal, sync::Mutex}; pub mod client; mod test; @@ -190,6 +190,7 @@ impl BunBunWorker { }); } + signal::ctrl_c().await.expect("failed to listen for event"); // TODO hand the program } }