mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
engine: stop jack processing on mutex poison
This commit is contained in:
parent
419a07de8c
commit
75f8fd8746
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,11 @@ impl Jack {
|
|||
// implements audio and MIDI input and output on a realtime basis.
|
||||
ClosureProcessHandler::new(Box::new({
|
||||
let app = app.clone();
|
||||
move|c: &_, s: &_|app.write().unwrap().process(c, s)
|
||||
move|c: &_, s: &_|if let Ok(mut app) = app.write() {
|
||||
app.process(c, s)
|
||||
} else {
|
||||
Control::Quit
|
||||
}
|
||||
}) as BoxedAudioHandler<'j>),
|
||||
)?;
|
||||
*self.state.write().unwrap() = Active(client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue