From 7e6090274a835fb3e020f139d1f212de09f94550 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 21 Mar 2022 20:26:02 -0400 Subject: [PATCH] lol oops Signed-off-by: Xe Iaso --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index c6dc33f..66071eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -229,6 +229,7 @@ async fn main() -> Result<()> { match std::env::var("SOCKPATH") { Ok(sockpath) => { + let _ = std::fs::remove_file(&sockpath); let uds = UnixListener::bind(&sockpath)?; axum::Server::builder(ServerAccept { uds }) .serve(app.into_make_service_with_connect_info::())