prevent 0-value ticker during ssh keepalive
This commit is contained in:
parent
2747562708
commit
a4123eabe3
|
@ -112,7 +112,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
if c.config.KeepAliveInterval < 0 {
|
if c.config.KeepAliveInterval <= 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c := time.NewTicker(c.config.KeepAliveInterval)
|
c := time.NewTicker(c.config.KeepAliveInterval)
|
||||||
|
|
Loading…
Reference in New Issue