diff --git a/src/main.rs b/src/main.rs index 6015ffc..263b75f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,8 @@ async fn main() -> Result<(), Box> { } 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?;