set file handle reader to nil
This commit is contained in:
@@ -205,6 +205,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
|
|||||||
if closer, ok := fh.f.reader.(io.Closer); ok {
|
if closer, ok := fh.f.reader.(io.Closer); ok {
|
||||||
closer.Close()
|
closer.Close()
|
||||||
}
|
}
|
||||||
|
fh.f.reader = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user