Addressed comment about activeConn.

pull/11745/head
Vishal Jain 2021-07-25 14:45:41 -07:00
parent bb0e516617
commit ecaa3c1f03
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ func (c *sshConn) startAndWait() error {
func (c *sshConn) stop() error {
if c.activeConn {
c.activeConn = false
out.Step(style.Stopping, "Stopping tunnel for service {{.service}}.", out.V{"service": c.service})
return c.cmd.Process.Kill()
}