mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-13 02:50:55 -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();
|
||||
preferences.getUseStandbyModeProperty().addListener((observable, oldValue, newValue) -> {
|
||||
if (newValue) {
|
||||
isStopped = true;
|
||||
log.info("AvoidStandbyModeService stopped");
|
||||
if (Utilities.isLinux() && runningInhibitorProcess().isPresent()) {
|
||||
Objects.requireNonNull(stopLinuxInhibitorCountdownLatch).countDown();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue