communicator/ssh: don't return error if we can't close connection.

pull/4741/head
Matthew Hooker 9 years ago
parent 55685abdc7
commit eab4730c29
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -250,7 +250,8 @@ func (c *comm) newSession() (session *ssh.Session, err error) {
func (c *comm) reconnect() (err error) {
if c.conn != nil {
return c.conn.Close()
// Ignore errors here because we don't care if it fails
c.conn.Close()
}
// Set the conn and client to nil since we'll recreate it

Loading…
Cancel
Save