summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-13 22:28:46 -0600
committerJeff Carr <[email protected]>2025-02-13 22:28:46 -0600
commit74de0ac89d0ebae039a11685e2a7d06fd656ecec (patch)
tree3b96b50b98b85b7302c5c4cdeedbc2094c4cb936 /init.go
parentb97dace40e481e672d438f597b3ecac29ec9eb40 (diff)
debugging init()v0.22.9
Diffstat (limited to 'init.go')
-rw-r--r--init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.go b/init.go
index 1896031..2d56adc 100644
--- a/init.go
+++ b/init.go
@@ -9,6 +9,7 @@ import (
"os"
"runtime/debug"
"sync"
+ "time"
"go.wit.com/log"
"go.wit.com/widget"
@@ -36,6 +37,8 @@ func (me *TreeInfo) catchActionChannel() {
case a := <-me.pluginChan:
log.Verbose("catchActionChannel() on ", a.WidgetId, a.WidgetType, a.ProgName)
muAction.Lock()
+ me.WaitOK()
+ time.Sleep(10 * time.Millisecond)
me.doAction(a)
muAction.Unlock()
}