Refresh unit requests and preserve shared compilation across runtime shutdown

This commit is contained in:
2026-11-06 23:53:54 +00:00
parent 9517515efe
commit 17d67aadcc
4 changed files with 90 additions and 11 deletions
+2
View File
@@ -339,6 +339,8 @@ fn controls(services: &mut BTreeMap<String, Service>) {
let Ok(request) = serde_json::from_slice::<Request>(&bytes) else {
continue;
};
// A unit edit can arrive after the event loop's scan but before this request.
scan(services);
let mut reply = Reply {
code: 0,
text: String::new(),