debugging init()

This commit is contained in:
Jeff Carr 2025-02-13 22:28:46 -06:00
parent b97dace40e
commit 74de0ac89d
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"os" "os"
"runtime/debug" "runtime/debug"
"sync" "sync"
"time"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget" "go.wit.com/widget"
@ -36,6 +37,8 @@ func (me *TreeInfo) catchActionChannel() {
case a := <-me.pluginChan: case a := <-me.pluginChan:
log.Verbose("catchActionChannel() on ", a.WidgetId, a.WidgetType, a.ProgName) log.Verbose("catchActionChannel() on ", a.WidgetId, a.WidgetType, a.ProgName)
muAction.Lock() muAction.Lock()
me.WaitOK()
time.Sleep(10 * time.Millisecond)
me.doAction(a) me.doAction(a)
muAction.Unlock() muAction.Unlock()
} }