Commit dce369fb authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

communicator/ssh: Reset failure count if heartbeat works

parent 35d0b90f
......@@ -119,6 +119,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
for {
dummy, err := c.config.Connection()
if err == nil {
failures = 0
dummy.Close()
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment