This commit is contained in:
Thoronium
2024-10-30 16:31:09 -06:00
parent dcc2b1707b
commit 422ce59f96
3 changed files with 4 additions and 4 deletions

View File

@@ -498,7 +498,7 @@ pub fn service_status(service: String) -> bool {
}
};
let status_result = my_service.query_status();
if let Ok(..) = status_result {
if status_result.is_ok() {
let status = status_result.unwrap();
println!("{} service status: {:?}", service, status.current_state);
if status.current_state == Stopped {