diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-09-23 16:23:43 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-09-28 09:37:39 +0200 |
| commit | 95fe23becc8d2edf2b13b870a94a6da49994fc23 (patch) | |
| tree | 2bb82bcea63147cf6b50a1d2d7feca64855d34a8 /talpid-core/src | |
| parent | e82f5a75dde80e0d025dc1d43f4d456cda2404b2 (diff) | |
| download | mullvadvpn-95fe23becc8d2edf2b13b870a94a6da49994fc23.tar.xz mullvadvpn-95fe23becc8d2edf2b13b870a94a6da49994fc23.zip | |
Fix race fetching initial version cache
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/future_retry.rs | 2 |
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(¤t_result) { if let Some(delay) = delays.next() { sleep(delay).await; + } else { + return current_result; } } else { return current_result; |
