communicator/ssh: Reset failure count if heartbeat works

pull/366/head
Mitchell Hashimoto 13 years ago
parent c16c467e63
commit 62fbf8fef8

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

Loading…
Cancel
Save