summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 18:57:31 -0500
committerJeff Carr <[email protected]>2025-09-04 18:57:31 -0500
commitc381a8d17975a53bcbbda329730d0e3020113389 (patch)
tree2c70f73ac4499e8273bb8856c2f1f653763313c2 /doGui.go
parent3a5e6ae51cea67869d9c62caf68a697cb8ed1d6a (diff)
trap potential panics
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index c25fc77..00245f4 100644
--- a/doGui.go
+++ b/doGui.go
@@ -20,6 +20,11 @@ import (
)
func debug() {
+ defer func() {
+ if r := recover(); r != nil {
+ gui.Crash(r, "forge debug()")
+ }
+ }()
time.Sleep(2 * time.Second)
for {
now := time.Now()
@@ -64,6 +69,11 @@ func debug() {
me.reposWinB.SetLabel(tmp)
}
+ // check for new patches
+ if err := me.forge.GetPatches(); err != nil {
+ log.Info("Get Patchsets Failed", err)
+ }
+
log.Printf("finished a forge scan here in (%s)\n", shell.FormatDuration(time.Since(now)))
time.Sleep(90 * time.Second)
}