wayvrctl: sleep to workaround sigbus from proto error

This commit is contained in:
galister
2025-12-23 19:17:57 +09:00
parent f038ad8a87
commit 17453ae1d9

View File

@@ -1,4 +1,4 @@
use std::{collections::HashMap, process::{self, ExitCode}};
use std::{collections::HashMap, process::{self, ExitCode}, time::Duration};
use anyhow::Context;
use clap::Parser;
@@ -33,6 +33,8 @@ async fn main() -> ExitCode {
if let Err(e) = maybe_err{
log::error!("{e:?}");
return ExitCode::FAILURE;
} else {
std::thread::sleep(Duration::from_millis(20));
}
ExitCode::SUCCESS