mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 05:46:32 +00:00
close connection in ssh exec
This commit is contained in:
@@ -18,6 +18,7 @@ func Exec(cfg *ssh.ClientConfig, addr, cmd string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer c.Close()
|
||||
s, err := c.NewSession()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user