mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
await sleep
This commit is contained in:
committed by
Aiden McClelland
parent
f01d9e9519
commit
bf7ceb6125
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user