diff options
| -rw-r--r-- | init.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() } |
