Skip to content

Commit

Permalink
update warn: Don't break loop, sleep after factorio quit
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Oct 31, 2024
1 parent c0d4dfd commit 9c915cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions support/mainLoops.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ func MainLoops() {
fact.FactChat(fact.AddFactColor("green", msg))
fact.FactChat(fact.AddFactColor("black", msg))
fact.FactChat(fact.AddFactColor("white", msg))
time.Sleep(time.Minute)
}

/* Reboot anyway */
Expand All @@ -482,13 +481,15 @@ func MainLoops() {
fact.LogGameCMS(true, cfg.Local.Channel.ChatChannel, msg)
glob.UpdateWarnCounter = 0
fact.QuitFactorio("Rebooting for Factorio update: " + fact.NewVersion)
break /* Stop looping */
time.Sleep(time.Minute * 10)
}
glob.UpdateWarnCounter = (glob.UpdateWarnCounter + 1)

time.Sleep(time.Minute)
} else {
glob.UpdateWarnCounter = 0
fact.QuitFactorio("Rebooting for Factorio update: " + fact.NewVersion)
break /* Stop looping */
time.Sleep(time.Minute * 10)
}
}
}
Expand Down

0 comments on commit 9c915cb

Please sign in to comment.