Skip to content

Commit

Permalink
Handle no connection. (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanzode authored Nov 24, 2021
1 parent 942d56d commit b98afaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions voltdbclient/node_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ func (nc *nodeConn) networkConnect(protocolVersion int) (interface{}, *wire.Conn
return tlsConn, i, nil
}
conn, err := net.DialTCP("tcp", nil, raddr)
if err != nil {
return nil, nil, err
}
i, err := nc.setupConn(protocolVersion, u, conn)
if err != nil {
conn.Close()
Expand Down

0 comments on commit b98afaf

Please sign in to comment.