fixed preload resumption

This commit is contained in:
ston1th 2022-08-18 23:10:55 +02:00
commit caf12d9ca5
5 changed files with 49 additions and 5 deletions

View file

@ -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() {