mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Merge pull request #49 from safing/fix/filterlists-module-state
Fix filterlists module state not being set
This commit is contained in:
commit
19ec8bf428
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ var (
|
|||
|
||||
const (
|
||||
filterlistsDisabled = "filterlists:disabled"
|
||||
filterlistsUpdateFailed = "filterlists:update-failed"
|
||||
filterlistsStaleDataSurvived = "filterlists:staledata"
|
||||
filterlistsStaleDataDescr = "Removing stale filter list records failed. Some connections may be overblocked."
|
||||
filterlistsUpdateInProgress = "filterlists:update-in-progress"
|
||||
|
|
|
@ -24,6 +24,8 @@ func tryListUpdate(ctx context.Context) error {
|
|||
if err != nil {
|
||||
if !isLoaded() {
|
||||
module.Error(filterlistsDisabled, err.Error())
|
||||
} else {
|
||||
module.Warning(filterlistsUpdateFailed, err.Error())
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue