release the goroutine to read errors

This commit is contained in:
Chris Lu 2020-10-15 10:59:18 -07:00
parent ace0ea3d28
commit 5039aff310

View file

@ -183,6 +183,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))
}
// stop the goroutine
close(fh.dirtyPages.chunkSaveErrChan)
return nil
}