rpc: close outgoing SSH connection on exit.

This commit is contained in:
Christian Schwarz
2017-05-14 12:28:19 +02:00
parent 04206ebd8b
commit 48a4e8033a
3 changed files with 48 additions and 0 deletions

View File

@ -208,6 +208,8 @@ func doPull(pull Pull, c *cli.Context, log jobrun.Logger) (err error) {
return
}
defer remote.Close()
fsr := rpc.FilesystemRequest{
Direction: rpc.DirectionPull,
}