We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e93e28 + 6735c97 commit 5c4f70fCopy full SHA for 5c4f70f
connection.go
@@ -325,6 +325,8 @@ func (c *Connection) setupConnection() error {
325
// Return an error if we're shutting down
326
return io.EOF
327
case err := <-c.protoErrorChan:
328
+ // Shutdown the connection and return the error
329
+ c.Close()
330
return err
331
case <-c.handshakeFinishedChan:
332
// This is purposely empty, but we need this case to break out when this channel is closed
0 commit comments