diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 03:59:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 03:59:14 -0500 |
| commit | 6a62be781be462c769bb1f61198ea584284e6bed (patch) | |
| tree | 73809b1b12924f3247fdc4ab6fc1809a9068c4c5 /exit.go | |
| parent | 5d2788edbc203fdb3b99d073e507962cb0f0e6ac (diff) | |
rename that stupid variable finallyv0.0.37
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() } } |
