assign stopped state in use standby mode listener

This commit is contained in:
woodser 2025-09-28 13:42:34 -04:00
parent 6214f4a120
commit 36178d1dca
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

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();
}