mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-23 13:35:38 +03:00
Merge: - filters: fix crash after update
#878 * commit '1c5b6130480b7c8796c9861c94e9635b550582bc': - filters: fix crash after update
This commit is contained in:
commit
0fb42e5c71
1 changed files with 1 additions and 1 deletions
|
@ -209,12 +209,12 @@ func refreshFiltersIfNecessary(force bool) int {
|
||||||
for i := range updateFilters {
|
for i := range updateFilters {
|
||||||
uf := &updateFilters[i]
|
uf := &updateFilters[i]
|
||||||
updated, err := uf.update()
|
updated, err := uf.update()
|
||||||
|
updateFlags = append(updateFlags, updated)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to update filter %s: %s\n", uf.URL, err)
|
log.Printf("Failed to update filter %s: %s\n", uf.URL, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
uf.LastUpdated = time.Now()
|
uf.LastUpdated = time.Now()
|
||||||
updateFlags = append(updateFlags, updated)
|
|
||||||
if updated {
|
if updated {
|
||||||
updateCount++
|
updateCount++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue