backend: Use tokio broadcast channels

This commit is contained in:
Elias Projahn 2021-04-25 12:26:43 +02:00
parent 3e2f73fc56
commit cb3e958f1b
5 changed files with 42 additions and 38 deletions

View file

@ -52,7 +52,7 @@ impl Window {
});
spawn!(@clone this, async move {
while let Some(state) = this.backend.next_state().await {
while let Ok(state) = this.backend.next_state().await {
match state {
BackendState::Loading => this.navigator.reset(),
BackendState::NoMusicLibrary => this.show_welcome_screen(),