Pārlūkot izejas kodu

auto update script executed

Toby Chui 1 gadu atpakaļ
vecāks
revīzija
a72a00e241
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      mod/sshprox/sshprox.go

+ 1 - 0
mod/sshprox/sshprox.go

@@ -140,6 +140,7 @@ func (i *Instance) CreateNewConnection(listenPort int, remoteIpAddr string, remo
 	cmd.Stderr = os.Stderr
 	go func() {
 		cmd.Run()
+		i.Destroy()
 	}()
 	i.tty = cmd
 	i.AssignedPort = listenPort