mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-16 12:21:28 +03:00
fix
This commit is contained in:
@@ -53,7 +53,9 @@ impl FrontendAdapter {
|
|||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
log::debug!("remove socket: {:?}", socket_path);
|
log::debug!("remove socket: {:?}", socket_path);
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
std::fs::remove_file(&socket_path).unwrap();
|
if socket_path.exists() {
|
||||||
|
std::fs::remove_file(&socket_path).unwrap();
|
||||||
|
}
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
let listener = UnixListener::bind(&socket_path)?;
|
let listener = UnixListener::bind(&socket_path)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user