communicator/ssh: Reset failure count if heartbeat works

This commit is contained in:
Mitchell Hashimoto 2013-08-27 22:14:31 -07:00
parent 35d0b90f55
commit dce369fb1d
1 changed files with 1 additions and 0 deletions

View File

@ -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()
}