diff --git a/src/helpers/fetchers.rs b/src/helpers/fetchers.rs index 708c55c..40ee5b3 100644 --- a/src/helpers/fetchers.rs +++ b/src/helpers/fetchers.rs @@ -128,7 +128,6 @@ impl Requestor { if self.retry_count > 0 { log::debug!("Retrying auth"); self.retry_count -= 1; - self.promise = None; self.token_refresh_promise = refresh::submit_refresh(); RequestStatus::InProgress } else { @@ -143,6 +142,12 @@ impl Requestor { }; self.state_has_changed = true; } + match res { + RequestStatus::InProgress => {} + _ => { + self.promise = None; + } + } res }