okay now it does not deadlock

This commit is contained in:
🪞👃🪞 2024-09-06 00:34:26 +03:00
parent 685ccfaf49
commit 80086b9a8b
5 changed files with 36 additions and 36 deletions

View file

@ -34,7 +34,7 @@ impl TransportToolbar {
transport.write().unwrap().jack = Some(
jack.activate(
&transport.clone(),
|state, client, scope| {
|state: &Arc<RwLock<TransportToolbar>>, client, scope| {
state.write().unwrap().process(client, scope)
}
)?