From 8ffb44aa11eb46b8b0614ed4391d1fc0d8c14753 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sat, 4 Jan 2025 10:57:06 +0100 Subject: [PATCH] fix: use exists() to verify existance of socket file --- src/ui/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/app.rs b/src/ui/app.rs index 14c0787..cd7d63d 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -210,7 +210,7 @@ impl App { self.xr_devices = vec![]; { let ipc_file = prof.xrservice_type.ipc_file_path(); - if ipc_file.is_file() { + if ipc_file.exists() { remove_file(ipc_file) .unwrap_or_else(|e| error!("failed to remove xrservice IPC file: {e}")); };