Skip to content

Commit

Permalink
feat(ADB): retry adb devices only 3 times in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain committed Jan 20, 2025
1 parent 0cff895 commit 31fccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ pub fn get_user_list() -> Vec<User> {
// getprop ro.serialno
pub async fn get_devices_list() -> Vec<Phone> {
retry(
Fixed::from_millis(500).take(120),
Fixed::from_millis(500).take(if cfg!(debug_assertions) { 3 } else { 120 }),
|| match adb_shell_command(false, "devices") {
Ok(devices) => {
let mut device_list: Vec<Phone> = vec![];
Expand Down

0 comments on commit 31fccce

Please sign in to comment.