maybe forge.ConfigSave() at the right time?

This commit is contained in:
Jeff Carr 2024-12-15 15:52:11 -06:00
parent 139653ba8c
commit 24ddb803f3
1 changed files with 5 additions and 1 deletions

View File

@ -151,11 +151,15 @@ func createReleaseBox(box *gui.Node) {
s := fmt.Sprint(duration)
log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter)
third := findCounter
log.Info("doReleaseAll() first =", first, "second =", second, "third =", third)
log.Info("doReleaseAll() findCounter first =", first, "second =", second, "third =", third)
if !findOk {
log.Info("doRelease() immediately end something went wrong last time. findOk == false")
return
}
if (second == 0) && (third == 0) {
log.Info("doReleaseAll() SaveConfig() here and Exit(0)")
me.forge.ConfigSave()
}
} else {
log.Info("doReleaseAll() first second match. something has gone terribly wrong")
log.Info("killing guireleaser is a bad idea here. it will potentially loose state")