mirror of https://github.com/jetkvm/kvm.git
fix: hwReboot delay should be delayMs
This commit is contained in:
parent
013e73b371
commit
f580631f0a
2
hw.go
2
hw.go
|
|
@ -32,7 +32,7 @@ func extractSerialNumber() (string, error) {
|
|||
}
|
||||
|
||||
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
|
||||
logger.Info().Dur("delay", delay).Msg("reboot requested")
|
||||
logger.Info().Dur("delayMs", delay).Msg("reboot requested")
|
||||
|
||||
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)
|
||||
time.Sleep(1 * time.Second) // Wait for the JSONRPCEvent to be sent
|
||||
|
|
|
|||
Loading…
Reference in New Issue