- 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

View file

@ -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