reset scanList to empty map instead of nil

This commit is contained in:
sentriz
2022-10-12 18:14:47 +01:00
parent d47d5e17e9
commit e4756aa560

View File

@@ -175,7 +175,7 @@ func (s *Scanner) ExecuteWatch() error {
}
}
scanList = nil
scanList = map[string]struct{}{}
s.StopScanning()
case event := <-s.watcher.Events:
var dirName string