mirror of
https://github.com/rclone/rclone.git
synced 2025-07-13 20:52:59 +08:00
vfs: close the change notify channel on Shutdown
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user