b2: Check timeout

This commit is contained in:
Alexander Neumann committed 2018-01-26 21:07:05 +01:00
1 parent 164acceb55
commit 7719cf88d9
1 file changed
+4
+4
View File
@@ -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