Shorter sleep.

This commit is contained in:
Tom Alexander 2022-02-17 21:34:11 -05:00
parent d56a7f32b6
commit 847ffe50be
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -45,7 +45,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
launch_mpv().await?;
sleep(Duration::from_secs(10)).await;
// TODO: Figure out a better way to wait for the socket to exist and be connectable
sleep(Duration::from_secs(1)).await;
let mut mpvctl = MpvCtl::connect("/tmp/recordwatchsocket").await?;
mpvctl.get_client_name().await?;