fix(ui): Fixed a bug that would freeze all user input while background network requests were running
This commit is contained in:
+1
-4
@@ -75,10 +75,7 @@ impl<'a, 'b> Network<'a, 'b> {
|
||||
}
|
||||
|
||||
pub(super) async fn reset_cancellation_token(&mut self) {
|
||||
let mut app = self.app.lock().await;
|
||||
self.cancellation_token = app.reset_cancellation_token();
|
||||
app.should_refresh = true;
|
||||
app.is_loading = false;
|
||||
self.cancellation_token = self.app.lock().await.reset_cancellation_token();
|
||||
}
|
||||
|
||||
async fn handle_request<B, R>(
|
||||
|
||||
Reference in New Issue
Block a user