mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 08:15:07 +03:00
main: Handle SIGQUIT even if we got samples
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
2c7fd76cec
commit
1773c6425b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue