From 50e7a31249f8b65c1b99ba2d71c9fb15a12333ce Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Mon, 13 Dec 2021 11:06:44 -0700 Subject: [PATCH] double sleep in `reconnect_usb` --- appmgr/src/disk/quirks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmgr/src/disk/quirks.rs b/appmgr/src/disk/quirks.rs index eed27c79f..d13e5141c 100644 --- a/appmgr/src/disk/quirks.rs +++ b/appmgr/src/disk/quirks.rs @@ -124,11 +124,11 @@ pub async fn reconnect_usb(usb_device_path: impl AsRef) -> Result<(), Erro authorized_file.write_all(b"0").await?; authorized_file.sync_all().await?; drop(authorized_file); - tokio::time::sleep(Duration::from_secs(1)).await; + tokio::time::sleep(Duration::from_secs(2)).await; let mut authorized_file = tokio::fs::File::create(&authorized_path).await?; authorized_file.write_all(b"1").await?; authorized_file.sync_all().await?; - tokio::time::sleep(Duration::from_secs(1)).await; + tokio::time::sleep(Duration::from_secs(2)).await; Ok(()) }