Merge pull request #1143 from ibuildthecloud/fix-panic-2

Fix panic when TCP timeout happens on SSH connect
This commit is contained in:
Evan Hazlett
2015-05-07 13:57:01 -07:00

View File

@@ -77,8 +77,9 @@ func (client *Client) Run(command string) (Output, error) {
if i == maxDialAttempts {
return output, errors.New("Max SSH/TCP dial attempts exceeded")
}
} else {
break
}
break
}
session, err := conn.NewSession()