fix(audio): fix high CPU usage
This commit is contained in:
parent
b449d0668b
commit
fe598a7a60
1 changed files with 4 additions and 0 deletions
|
|
@ -219,6 +219,10 @@ impl PulseHandle {
|
|||
loop {
|
||||
// This is where the we match messages from the GUI to pass to the pulse server
|
||||
let mut msgs = Vec::new();
|
||||
|
||||
if let Some(msg) = to_pulse_recv.recv().await {
|
||||
msgs.push(msg);
|
||||
}
|
||||
while let Ok(msg) = to_pulse_recv.try_recv() {
|
||||
msgs.push(msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue