refactor(audio): update the connection after it has disconnected or been initialized

This commit is contained in:
Ashley Wulber 2023-10-31 10:43:13 -04:00 committed by Ashley Wulber
parent 4c40374014
commit eef73793bf
2 changed files with 14 additions and 4 deletions

View file

@ -48,7 +48,6 @@ async fn start_listening(
State::Connecting(from_pulse)
}
// Waiting for Connection to succeed
// The GUI doesn't have to monitor this state, as it is never sent to the GUI
State::Connecting(mut from_pulse) => match from_pulse.recv().await {
Some(Message::Connected) => {
_ = output.send(Event::Connected).await;