vfs: close the change notify channel on Shutdown

This commit is contained in:
izouxv 2025-01-17 23:38:09 +08:00 committed by Nick Craig-Wood
parent 64556d4ca2
commit 642d1415d1

View File

@ -365,6 +365,11 @@ func (vfs *VFS) Shutdown() {
activeMu.Unlock()
vfs.shutdownCache()
if vfs.pollChan != nil {
close(vfs.pollChan)
vfs.pollChan = nil
}
}
// CleanUp deletes the contents of the on disk cache