Increase restart delay to 60s
This commit is contained in:
parent
450c7d80f8
commit
db868ed29d
@ -1127,16 +1127,17 @@ func overrideGUIConfig(originalCfg config.GUIConfiguration, address, authenticat
|
|||||||
}
|
}
|
||||||
|
|
||||||
func standbyMonitor() {
|
func standbyMonitor() {
|
||||||
|
restartDelay := time.Duration(60 * time.Second)
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
for {
|
for {
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
if time.Since(now) > 2*time.Minute {
|
if time.Since(now) > 2*time.Minute {
|
||||||
l.Infoln("Paused state detected, possibly woke up from standby.")
|
l.Infoln("Paused state detected, possibly woke up from standby. Restarting in", restartDelay)
|
||||||
|
|
||||||
// We most likely just woke from standby. If we restart
|
// We most likely just woke from standby. If we restart
|
||||||
// immediately chances are we won't have networking ready. Give
|
// immediately chances are we won't have networking ready. Give
|
||||||
// things a moment to stabilize.
|
// things a moment to stabilize.
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(restartDelay)
|
||||||
|
|
||||||
restart()
|
restart()
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user