summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 03:46:24 -0600
committerJeff Carr <[email protected]>2025-03-03 03:46:24 -0600
commitb61cf9902e50cdaffb28cc76e5eab416b9334085 (patch)
tree0227299a64e0e9738beec8cf6f6b3c85e59fd399 /plugin.go
parent24475c41733173d479c23eab2b134c016c507f73 (diff)
die if this isn't already init'd
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index be30b71..ce1f51a 100644
--- a/plugin.go
+++ b/plugin.go
@@ -9,8 +9,10 @@ package tree
*/
import (
+ "os"
"time"
+ "go.wit.com/log"
"go.wit.com/widget"
)
@@ -46,6 +48,12 @@ func (me *TreeInfo) InitOK() {
// before trying to do anything. todo: rethink this someday
func (me *TreeInfo) WaitOK() {
for {
+ if me == nil {
+ log.Info("WaitOK lied. me == nil but returned anyway")
+ log.Info("WaitOK lied. me == nil but returned anyway")
+ log.Info("WaitOK lied. me == nil but returned anyway")
+ os.Exit(-1)
+ }
if me.ok {
return
}