mount: avoid "send on closed channel"

This commit is contained in:
Chris Lu
2020-10-16 12:54:23 -07:00
parent 9d80a3428c
commit 09bab17aff
2 changed files with 14 additions and 7 deletions

View File

@@ -186,6 +186,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
}
// stop the goroutine
fh.dirtyPages.chunkSaveErrChanClosed = true
close(fh.dirtyPages.chunkSaveErrChan)
return nil