diff options
-rw-r--r-- | karld/src/interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/karld/src/interface.rs b/karld/src/interface.rs index f283733..e8e0b90 100644 --- a/karld/src/interface.rs +++ b/karld/src/interface.rs @@ -7,8 +7,8 @@ use std::os::unix::net::{UnixListener, UnixStream}; use std::thread; pub fn network_loop() { - if std::fs::try_exists(socket_path()).unwrap() { - info!("delete old socket"); + if socket_path().exists() { + info!("remove old socket"); std::fs::remove_file(socket_path()).unwrap(); } let listener = UnixListener::bind(socket_path()).unwrap(); |