mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-21 06:45:38 -06:00
fix
This commit is contained in:
parent
3b09abb532
commit
c50b746816
1 changed files with 3 additions and 1 deletions
|
|
@ -53,7 +53,9 @@ impl FrontendAdapter {
|
|||
#[cfg(unix)]
|
||||
log::debug!("remove socket: {:?}", socket_path);
|
||||
#[cfg(unix)]
|
||||
std::fs::remove_file(&socket_path).unwrap();
|
||||
if socket_path.exists() {
|
||||
std::fs::remove_file(&socket_path).unwrap();
|
||||
}
|
||||
#[cfg(unix)]
|
||||
let listener = UnixListener::bind(&socket_path)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue