Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pantianying committed Dec 1, 2019
1 parent b11740e commit af5bb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ func (r *zkRegistry) getListener(conf *common.URL) (*RegistryConfigurationListen

r.listenerLock.Lock()
if r.configListener.isClosed {
return nil, perrors.New("configListener already been closed")
r.listenerLock.Unlock()
return nil, perrors.New("configListener already been closed")
}
zkListener = r.configListener
r.listenerLock.Unlock()
Expand Down

0 comments on commit af5bb1e

Please sign in to comment.