server fix

This commit is contained in:
Brad Stein 2025-06-18 01:41:11 -05:00
parent 6febb8ac00
commit e3d84b8289
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ impl NavkaClientApp {
if self.dev_mode {
tokio::time::sleep(Duration::from_secs(30)).await;
warn!("devmode timeout");
self.aggregator.keyboards.dev.ungrab();
self.aggregator.mice.dev.ungrab();
std::process::exit(0);
} else { futures::future::pending::<()>().await }
};

View File

@ -38,7 +38,7 @@ async fn main() -> Result<()> {
let file = OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
// .truncate(true)
.open(&log_path)?;
let (file_writer, guard) = non_blocking(file);
_guard = Some(guard);