assign stopped state in use standby mode listener

This commit is contained in:
woodser 2025-09-28 13:42:34 -04:00 committed by woodser
parent 60ee90f53b
commit 96e0e78bf3

View file

@ -68,6 +68,8 @@ public class AvoidStandbyModeService {
this.inhibitorPathSpec = inhibitorPath();
preferences.getUseStandbyModeProperty().addListener((observable, oldValue, newValue) -> {
if (newValue) {
isStopped = true;
log.info("AvoidStandbyModeService stopped");
if (Utilities.isLinux() && runningInhibitorProcess().isPresent()) {
Objects.requireNonNull(stopLinuxInhibitorCountdownLatch).countDown();
}