Skip to content

Commit

Permalink
Update hive.go (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpanjian authored and beltran committed Dec 5, 2019
1 parent 556489f commit a092d93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ func Connect(host string, port int, auth string,
} else {
panic("Unrecognized auth")
}
if err = transport.Open(); err != nil {
return
if !transport.IsOpen() {
if err = transport.Open(); err != nil {
return
}
}
} else {
panic(fmt.Sprintf("Unrecognized transport mode %s", configuration.TransportMode))
Expand Down

0 comments on commit a092d93

Please sign in to comment.