Browse Source

set file handle reader to nil

pull/1658/head
Chris Lu 4 years ago
parent
commit
4211601eab
  1. 1
      weed/filesys/filehandle.go

1
weed/filesys/filehandle.go

@ -205,6 +205,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
if closer, ok := fh.f.reader.(io.Closer); ok {
closer.Close()
}
fh.f.reader = nil
}
return nil

Loading…
Cancel
Save