diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 4ed0e6c2b..fb073c9cd 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -196,7 +196,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle)) if closer, ok := fh.f.reader.(io.Closer); ok { - closer.Close() + if closer != nil { + closer.Close() + } } fh.f.reader = nil }