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; };