diff --git a/Cargo.lock b/Cargo.lock index 8633bf3..54d7e03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1383,7 +1383,7 @@ dependencies = [ [[package]] name = "reqwest-cross" -version = "0.6.0" +version = "0.6.1" dependencies = [ "anyhow", "document-features", diff --git a/Cargo.toml b/Cargo.toml index 299e3a3..3268449 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reqwest-cross" -version = "0.6.0" +version = "0.6.1" authors = ["One "] categories = ["web-programming::http-client", "wasm"] documentation = "https://docs.rs/reqwest-cross" diff --git a/src/data_state_retry.rs b/src/data_state_retry.rs index 38dbe77..34ba9d6 100644 --- a/src/data_state_retry.rs +++ b/src/data_state_retry.rs @@ -118,6 +118,11 @@ impl DataStateRetry { if ui.button("Stop Trying").clicked() { self.attempts_left = 0; } + let can_make_progress = self.start_or_poll(fetch_fn); + debug_assert!( + can_make_progress.is_able_to_make_progress(), + "This should be able to make progress" + ); } CanMakeProgress::AbleToMakeProgress }