Shorter sleep.

master
Tom Alexander 2 years ago
parent d56a7f32b6
commit 847ffe50be
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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?;

Loading…
Cancel
Save