Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: close the change notify channel on Shutdown

izouxv0275d3edf2ba
diff --git a/vfs/vfs.go b/vfs/vfs.go
index 68b17f483..8907a6e50 100644
--- a/vfs/vfs.go
+++ b/vfs/vfs.go
@@ -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