maybe forge.ConfigSave() at the right time?
This commit is contained in:
parent
139653ba8c
commit
24ddb803f3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue