mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-19 19:14:53 +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![];
|
||||
{
|
||||
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}"));
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue