server fix
This commit is contained in:
parent
6febb8ac00
commit
e3d84b8289
@ -57,6 +57,8 @@ impl NavkaClientApp {
|
|||||||
if self.dev_mode {
|
if self.dev_mode {
|
||||||
tokio::time::sleep(Duration::from_secs(30)).await;
|
tokio::time::sleep(Duration::from_secs(30)).await;
|
||||||
warn!("dev‑mode timeout");
|
warn!("dev‑mode timeout");
|
||||||
|
self.aggregator.keyboards.dev.ungrab();
|
||||||
|
self.aggregator.mice.dev.ungrab();
|
||||||
std::process::exit(0);
|
std::process::exit(0);
|
||||||
} else { futures::future::pending::<()>().await }
|
} else { futures::future::pending::<()>().await }
|
||||||
};
|
};
|
||||||
|
|||||||
@ -38,7 +38,7 @@ async fn main() -> Result<()> {
|
|||||||
let file = OpenOptions::new()
|
let file = OpenOptions::new()
|
||||||
.create(true)
|
.create(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.truncate(true)
|
// .truncate(true)
|
||||||
.open(&log_path)?;
|
.open(&log_path)?;
|
||||||
let (file_writer, guard) = non_blocking(file);
|
let (file_writer, guard) = non_blocking(file);
|
||||||
_guard = Some(guard);
|
_guard = Some(guard);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user