diff --git a/filter.go b/filter.go index e6e43334..1a4671b2 100644 --- a/filter.go +++ b/filter.go @@ -178,6 +178,10 @@ func periodicallyRefreshFilters() { func refreshFiltersIfNecessary(force bool) int { var updateFilters []filter + if config.firstRun { + return 0 + } + config.RLock() for i := range config.Filters { f := &config.Filters[i] // otherwise we will be operating on a copy