leizhiyuan opened a new issue #589:
URL: https://github.com/apache/pulsar-client-go/issues/589
#### Expected behavior
only close cnx,not connection
```
// Close closes the connection by
// closing underlying socket connection and closeCh.
// This also triggers callbacks to the ConnectionClosed listeners.
func (c *connection) Close() {
c.closeOnce.Do(func() {
c.Lock()
```
when invoke close , It will not be executed twice.
#### Actual behavior
Tell us what happens instead
#### Steps to reproduce
How can we reproduce the issue
#### System configuration
**Pulsar version**: x.y
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]