Skip to content
Snippets Groups Projects
Commit e2bca04b authored by wangwx's avatar wangwx
Browse files

add unlock

parent 236dba0f
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@ func (l *ZkEventListener) listenDirEvent(zkPath string, listener remoting.DataLi
//When Zk disconnected, the Conn will be set to nil, so here need check the value of Conn
l.client.RLock()
if l.client.Conn == nil {
l.client.RUnlock()
break
}
content, _, err := l.client.Conn.Get(dubboPath)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment