try the lock but don't insist on it
This commit is contained in:
parent
860908c82f
commit
975c2d3102
|
@ -6,8 +6,11 @@ import (
|
|||
)
|
||||
|
||||
func (me *TreeInfo) AddNode(a *widget.Action) *Node {
|
||||
// me.Lock()
|
||||
// defer me.Unlock()
|
||||
if me.TryLock() {
|
||||
defer me.Unlock()
|
||||
} else {
|
||||
log.Info("TREE: mutex lock was already held before AddNode()")
|
||||
}
|
||||
return AddNode(a)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue