Shorter sleep.
This commit is contained in:
parent
d56a7f32b6
commit
847ffe50be
@ -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…
x
Reference in New Issue
Block a user