mirror of
https://github.com/restic/restic.git
synced 2025-08-12 19:07:40 +00:00
b2: Check timeout
This commit is contained in:
@@ -297,6 +297,10 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType, fn func(restic
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
attrs, err := obj.Attrs(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user