mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-14 09:08:24 +02:00
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