mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-14 19:40:53 -04:00
assign stopped state in use standby mode listener
This commit is contained in:
parent
6214f4a120
commit
36178d1dca
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ public class AvoidStandbyModeService {
|
||||||
this.inhibitorPathSpec = inhibitorPath();
|
this.inhibitorPathSpec = inhibitorPath();
|
||||||
preferences.getUseStandbyModeProperty().addListener((observable, oldValue, newValue) -> {
|
preferences.getUseStandbyModeProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
|
isStopped = true;
|
||||||
|
log.info("AvoidStandbyModeService stopped");
|
||||||
if (Utilities.isLinux() && runningInhibitorProcess().isPresent()) {
|
if (Utilities.isLinux() && runningInhibitorProcess().isPresent()) {
|
||||||
Objects.requireNonNull(stopLinuxInhibitorCountdownLatch).countDown();
|
Objects.requireNonNull(stopLinuxInhibitorCountdownLatch).countDown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue