Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix regression on control socket delete
Alexis Sellier committed 2 years ago
commit 91404e4c37357c3781e0c6b4746e38ad0a075d05
parent ff7338de17e2ebf7325d3b01ad4a526bcd152a02
1 file changed +3 -0
modified 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(())