Refresh unit requests and preserve shared compilation across runtime shutdown
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user