rpc: close outgoing SSH connection on exit.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user