Skip to content

Commit

Permalink
tiny refactor + updated todo
Browse files Browse the repository at this point in the history
  • Loading branch information
F0903 committed Sep 7, 2024
1 parent eb7dcda commit 118abc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# TODO

- Consider either moving completely to a normal background process, or running the proxy from the service.
- Rewrite as a normal background process. The current way is too limiting due to session 0 isolation, and strange behaviour with some APIs.
12 changes: 0 additions & 12 deletions src/services/power_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,6 @@ impl WindowsService for PowerService {
}
});

/* LOGGER.debug("Registering power setting notification handling...");
if let Err(e) = RegisterPowerSettingNotification(
HANDLE(me.status_handle.unwrap().0),
&GUID_ACDC_POWER_SOURCE,
WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS(1),
) {
LOGGER.error(format!(
"Could not register power settings notification!\n{}",
e
));
} */

LOGGER.debug("Creating stop event...");
me.stop_event = Some(match CreateEventW(None, TRUE, FALSE, None) {
Ok(x) => x,
Expand Down

0 comments on commit 118abc5

Please sign in to comment.