Skip to content

Commit

Permalink
Merge pull request #1129 from jack15083/1.5
Browse files Browse the repository at this point in the history
fix panic: sync: negative WaitGroup counter
  • Loading branch information
AlexStocks authored Apr 3, 2021
2 parents 5f4a51d + 856e5ab commit 9635a6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func newZkRegistry(url *common.URL) (registry.Registry, error) {
return nil, err
}

r.WaitGroup().Add(1) //zk client start successful, then wg +1
go zookeeper.HandleClientRestart(r)

r.listener = zookeeper.NewZkEventListener(r.client)
Expand Down

0 comments on commit 9635a6a

Please sign in to comment.