mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-29 08:46:54 +00:00
Merge pull request #36 from slp/pipewire-fix-thread_loop
sound/pipewire: move stream_hash insert into lock
This commit is contained in:
commit
cbc80bee22
@ -385,10 +385,10 @@ impl AudioBackend for PwBackend {
|
||||
)
|
||||
.expect("could not connect to the stream");
|
||||
|
||||
lock_guard.unlock();
|
||||
|
||||
// insert created stream in a hash table
|
||||
stream_hash.insert(stream_id, stream);
|
||||
|
||||
lock_guard.unlock();
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user