Minor edits.
This commit is contained in:
parent
d637cb2c72
commit
2a3774ae24
1 changed files with 2 additions and 2 deletions
|
|
@ -196,6 +196,7 @@ public class QemuMonitor extends QemuConnector {
|
|||
+ " cannot send powerdown command");
|
||||
return;
|
||||
}
|
||||
|
||||
// We have a connection to Qemu, attempt ACPI shutdown.
|
||||
event.suspendHandling();
|
||||
suspendedStop = event;
|
||||
|
|
@ -203,7 +204,6 @@ public class QemuMonitor extends QemuConnector {
|
|||
// Attempt powerdown command. If not confirmed, assume
|
||||
// "hanging" qemu process.
|
||||
powerdownTimer = Components.schedule(t -> {
|
||||
// Powerdown not confirmed
|
||||
logger.fine(() -> "QMP powerdown command not confirmed");
|
||||
synchronized (this) {
|
||||
powerdownTimer = null;
|
||||
|
|
@ -212,7 +212,7 @@ public class QemuMonitor extends QemuConnector {
|
|||
suspendedStop = null;
|
||||
}
|
||||
}
|
||||
}, Duration.ofSeconds(1));
|
||||
}, Duration.ofSeconds(5));
|
||||
logger.fine(() -> "Attempting QMP powerdown.");
|
||||
powerdownStartedAt = Instant.now();
|
||||
fire(new MonitorCommand(new QmpPowerdown()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue