summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/watchdog.go b/watchdog.go
index 690ca44..e80861f 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -9,18 +9,19 @@ var watchtime time.Duration = 100 // in tenths of seconds
/*
This program sits here.
If you exit here, the whole thing will os.Exit()
+ TODO: use Ticker
This goroutine can be used like a watchdog timer
*/
func Watchdog() {
var i = 1
for {
- log(logInfo, "watchdog timer is alive. give me something to do.", i)
- if (Config.rootNode == nil) {
- log(logInfo, "Config.rootNode == nil", i)
+ log(logInfo, "gui.Watchdog() is alive. give me something to do.", i)
+ if (me.rootNode == nil) {
+ log(logInfo, "me.rootNode == nil", i)
} else {
if (logVerbose) {
- Config.rootNode.ListChildren(true)
+ me.rootNode.ListChildren(true)
}
}
i += 1