feat: ✨ handle multiple clients with one sound stream
This commit is contained in:
parent
4b158d5195
commit
7707c66407
4 changed files with 85 additions and 26 deletions
|
@ -21,8 +21,7 @@ pub fn listen_renderer() -> Element {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
is_listening.set(false);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -70,8 +70,7 @@ pub async fn sound_stream(
|
|||
};
|
||||
if let Err(_) = producer.push(single_data) {}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue