From bf7ceb612510e402b44c9b559055f0541777dbf8 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Mon, 24 Jan 2022 15:37:02 -0700 Subject: [PATCH] await sleep --- backend/src/sound.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/sound.rs b/backend/src/sound.rs index e55950bd1..6c74d9960 100644 --- a/backend/src/sound.rs +++ b/backend/src/sound.rs @@ -41,7 +41,7 @@ impl SoundInterface { while tokio::fs::metadata(&*PERIOD_FILE).await.is_err() && instant.elapsed() < Duration::from_secs(1) { - tokio::time::sleep(Duration::from_millis(1)); + tokio::time::sleep(Duration::from_millis(1)).await; } Ok(SoundInterface(Some(guard))) }