mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 14:31:23 +00:00
🧹 Replace unsafe unwrap on Mutex lock with unwrap_or_else (#33)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
95761f6a5a
commit
c6577cd5e0
+1
-1
@@ -77,7 +77,7 @@ impl App for SoundpadGui {
|
||||
|
||||
// Sync audio player state
|
||||
{
|
||||
let guard = self.audio_player_state_shared.lock().unwrap();
|
||||
let guard = self.audio_player_state_shared.lock().unwrap_or_else(|e| e.into_inner());
|
||||
self.audio_player_state = guard.clone();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user