Skip to content
Snippets Groups Projects
Unverified Commit 7efba166 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #907 from wenxuwan/fix_panic_906

FIX:#906
parents d077dea2 ee355947
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,9 @@ func (r *zkRegistry) registerTempZookeeperNode(root string, node string) error {
r.cltLock.Lock()
defer r.cltLock.Unlock()
if r.client == nil{
return perrors.WithStack(perrors.New("zk client already been closed"))
}
err = r.client.Create(root)
if err != nil {
logger.Errorf("zk.Create(root{%s}) = err{%v}", root, perrors.WithStack(err))
......
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