mirror of
https://github.com/restic/restic.git
synced 2025-08-13 13:01:59 +00:00
backend/rclone: Stop rclone in case of errors
This commit is contained in:
@@ -221,6 +221,7 @@ func Create(cfg Config) (*Backend, error) {
|
|||||||
|
|
||||||
restBackend, err := rest.Create(restConfig, be.tr)
|
restBackend, err := rest.Create(restConfig, be.tr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
_ = be.Close()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user