mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
fix: use exists() to verify existance of socket file
This commit is contained in:
parent
a651b87cc3
commit
8ffb44aa11
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ impl App {
|
||||||
self.xr_devices = vec![];
|
self.xr_devices = vec![];
|
||||||
{
|
{
|
||||||
let ipc_file = prof.xrservice_type.ipc_file_path();
|
let ipc_file = prof.xrservice_type.ipc_file_path();
|
||||||
if ipc_file.is_file() {
|
if ipc_file.exists() {
|
||||||
remove_file(ipc_file)
|
remove_file(ipc_file)
|
||||||
.unwrap_or_else(|e| error!("failed to remove xrservice IPC file: {e}"));
|
.unwrap_or_else(|e| error!("failed to remove xrservice IPC file: {e}"));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue