Skip to content

Commit

Permalink
removed redundant option
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 10, 2024
1 parent 9c75781 commit a054420
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/services/power_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,7 @@ impl WindowsService for PowerService {
});

LOGGER.debug("Setting service status to running...");
if let Err(e) = me.set_service_status(
SERVICE_RUNNING,
None,
Some(SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_POWEREVENT),
) {
if let Err(e) = me.set_service_status(SERVICE_RUNNING, None, Some(SERVICE_ACCEPT_STOP)) {
LOGGER.error(format!("Could not set service status!\n{}", e));
}

Expand Down

0 comments on commit a054420

Please sign in to comment.