summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/future_retry.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/talpid-core/src/future_retry.rs b/talpid-core/src/future_retry.rs
index 6e7c05fc35..0e494cc96c 100644
--- a/talpid-core/src/future_retry.rs
+++ b/talpid-core/src/future_retry.rs
@@ -22,6 +22,8 @@ pub async fn retry_future_with_backoff<
if should_retry(&current_result) {
if let Some(delay) = delays.next() {
sleep(delay).await;
+ } else {
+ return current_result;
}
} else {
return current_result;