fix(ui): Fixed a bug that would freeze all user input while background network requests were running
This commit is contained in:
1 parent
8c90221a81
commit
0d8803d35d
6 files changed
+68
-62
No files matched your search
+1
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user