This commit is contained in:
Ferdinand Schober
2023-09-19 21:13:17 +02:00
parent 3b09abb532
commit c50b746816

View File

@@ -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)?;