From 91404e4c37357c3781e0c6b4746e38ad0a075d05 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Fri, 2 Jun 2023 18:40:58 +0200 Subject: [PATCH] node: Fix regression on control socket delete The removal of the control socket on shutdown was mistakenly taken out. We add it back here. --- radicle-node/src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicle-node/src/runtime.rs b/radicle-node/src/runtime.rs index 7f0e640f..066ec983 100644 --- a/radicle-node/src/runtime.rs +++ b/radicle-node/src/runtime.rs @@ -292,6 +292,9 @@ impl Runtime { // Nb. We don't join the control thread here, as we have no way of notifying it that the // node is shutting down. + // Remove control socket file, but don't freak out if it's not there anymore. + fs::remove_file(home.socket()).ok(); + log::debug!(target: "node", "Node shutdown completed for {}", self.id); Ok(())