node: Fix regression on control socket delete

The removal of the control socket on shutdown was mistakenly taken out.
We add it back here.
This commit is contained in:
Alexis Sellier 2023-06-02 18:40:58 +02:00
parent ff7338de17
commit 91404e4c37
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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(())