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.
1 parent 0e93e28 commit 6735c97Copy full SHA for 6735c97
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