fix(ui): Fixed a bug that would freeze all user input while background network requests were running

This commit is contained in:
2024-11-06 15:50:47 -07:00
parent 8c90221a81
commit 0d8803d35d
6 changed files with 68 additions and 62 deletions
+1 -5
View File
@@ -158,11 +158,7 @@ async fn start_networking(
while network_rx.try_recv().is_ok() {
// Discard the message
}
{
/* Wrapped in its own block so we don't lock the app arc early,
so UI is still processed */
network.reset_cancellation_token().await;
}
network.reset_cancellation_token().await;
}
}
}