瀏覽代碼

auto update script executed

Toby Chui 1 年之前
父節點
當前提交
a72a00e241
共有 1 個文件被更改,包括 1 次插入0 次删除
  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