b2: Check timeout
This commit is contained in:
parent
164acceb55
commit
7719cf88d9
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,10 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType, fn func(restic
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
|
||||||
attrs, err := obj.Attrs(ctx)
|
attrs, err := obj.Attrs(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue