fixed preload resumption
This commit is contained in:
parent
304135be2e
commit
caf12d9ca5
5 changed files with 49 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ func (f *File) Preload(ctx context.Context, fin func(), errf func(), stop func()
|
|||
defer f.Close()
|
||||
if f.offline {
|
||||
log.V(2).Error(errors.New("no preload in offline mode"), "error preloading file")
|
||||
fin()
|
||||
errf()
|
||||
return
|
||||
}
|
||||
if f.md.FullyCached() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue