diff --git a/examples/examples/z_sub_thr.rs b/examples/examples/z_sub_thr.rs index afdd07ed23..9f971f781a 100644 --- a/examples/examples/z_sub_thr.rs +++ b/examples/examples/z_sub_thr.rs @@ -13,7 +13,7 @@ // use clap::Parser; use std::io::{stdin, Read}; -use std::time::Instant; +use std::time::{Duration, Instant}; use zenoh::config::Config; use zenoh::prelude::sync::*; use zenoh_examples::CommonArgs; @@ -95,11 +95,15 @@ fn main() { .res() .unwrap(); - for byte in stdin().bytes() { - match byte { - Ok(b'q') => break, - _ => std::thread::yield_now(), - } + // for byte in stdin().bytes() { + // match byte { + // Ok(b'q') => break, + // _ => std::thread::yield_now(), + // } + // } + + loop { + std::thread::park(); } }