debugging init()
This commit is contained in:
parent
b97dace40e
commit
74de0ac89d
3
init.go
3
init.go
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue