From eab4730c29610c4d5dbdcaed6c1593a3482ca12c Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 30 Mar 2017 02:14:49 -0700 Subject: [PATCH] communicator/ssh: don't return error if we can't close connection. --- communicator/ssh/communicator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index d9fc0442d..ab828d747 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -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