From c539b0628be7ea66feb3840fdca60c9e59bf3c75 Mon Sep 17 00:00:00 2001 From: Ashley Wulber <48420062+wash2@users.noreply.github.com> Date: Fri, 18 Jul 2025 14:06:19 -0400 Subject: [PATCH] fix(bluetooth): reversed min/max condition on retry timer --- cosmic-applet-bluetooth/src/bluetooth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmic-applet-bluetooth/src/bluetooth.rs b/cosmic-applet-bluetooth/src/bluetooth.rs index 549f654b..9aef9880 100644 --- a/cosmic-applet-bluetooth/src/bluetooth.rs +++ b/cosmic-applet-bluetooth/src/bluetooth.rs @@ -91,7 +91,7 @@ pub fn bluetooth_subscription( retry_count = retry_count.saturating_add(1); _ = tokio::time::sleep(Duration::from_millis( - 2_u64.saturating_pow(retry_count).max(68719476734), + 2_u64.saturating_pow(retry_count).min(68719476734), )) .await; };