mirror of
https://github.com/octoleo/restic.git
synced 2024-12-26 20:30:19 +00:00
rclone: close connection to rclone if open fails
This commit is contained in:
parent
9333f707fa
commit
60a5c35de9
@ -267,6 +267,7 @@ func Open(cfg Config, lim limiter.Limiter) (*Backend, error) {
|
||||
|
||||
restBackend, err := rest.Open(restConfig, debug.RoundTripper(be.tr))
|
||||
if err != nil {
|
||||
_ = be.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user