mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
quit jack loop on PoisonError
This commit is contained in:
parent
21b08bf3df
commit
a305ba3cc1
1 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,11 @@ pub trait Audio {
|
|||
fn callback(
|
||||
state: &Arc<RwLock<Self>>, client: &Client, scope: &ProcessScope
|
||||
) -> Control where Self: Sized {
|
||||
state.write().unwrap().process(client, scope)
|
||||
if let Ok(mut state) = state.write() {
|
||||
state.process(client, scope)
|
||||
} else {
|
||||
Control::Quit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue