- app: don't print filter update error messages on first launch before

DNS server is set up
This commit is contained in:
Simon Zolin 2019-04-23 19:26:51 +03:00
parent 5c65d0cabe
commit 3087c54a15
1 changed files with 4 additions and 0 deletions

View File

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