fix: use exists() to verify existance of socket file
Some checks are pending
/ cargo-fmtcheck (push) Waiting to run
/ cargo-clippy (push) Waiting to run
/ cargo-test (push) Waiting to run
/ appimage (push) Waiting to run

This commit is contained in:
Gabriele Musco 2025-01-04 10:57:06 +01:00
parent a651b87cc3
commit 8ffb44aa11

View file

@ -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}"));
};