diff --git a/src/main.rs b/src/main.rs index 32c7c77..4afbe62 100644 --- a/src/main.rs +++ b/src/main.rs @@ -281,6 +281,10 @@ fn main() { warn!("Expected {} samples, got {}", globals.period, read); } + if sigquit.load(Ordering::Relaxed) { + panic!("SIGQUIT received"); + } + let buf_read = &buf[0..read * globals.channels]; let cur_sample_rate = sample_rate_elem.read_int(&ctl);