summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
committerJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
commit6a62be781be462c769bb1f61198ea584284e6bed (patch)
tree73809b1b12924f3247fdc4ab6fc1809a9068c4c5 /exit.go
parent5d2788edbc203fdb3b99d073e507962cb0f0e6ac (diff)
rename that stupid variable finallyv0.0.37
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/exit.go b/exit.go
index a9deec7..393ddec 100644
--- a/exit.go
+++ b/exit.go
@@ -17,8 +17,8 @@ import (
func (pb *Auto) GoodExit(msg string) {
go ExitWatchdog()
- if myAuto.appExit != nil {
- myAuto.appExit()
+ if me.appExit != nil {
+ me.appExit()
}
dur := time.Since(pb.Ctime.AsTime())
log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur))
@@ -27,8 +27,8 @@ func (pb *Auto) GoodExit(msg string) {
func (pb *Auto) BadExit(msg string, err error) {
go ExitWatchdog()
- if myAuto.appExit != nil {
- myAuto.appExit()
+ if me.appExit != nil {
+ me.appExit()
}
// print out errors. this handles wrapped errors which is a useful
if err != nil {
@@ -68,7 +68,7 @@ func ExitWatchdog() {
return
case t := <-dog.C:
_ = t
- log.Info("argv.Exit() watchdog: stalled in", myAuto.ARGNAME+".Exit()")
+ log.Info("argv.Exit() watchdog: stalled in", me.ARGNAME+".Exit()")
// h.Scan()
}
}