mirror of
https://github.com/safing/portmaster
synced 2025-04-17 17:39:10 +00:00
[service] Do not warn when custom filter lists are not configured
This commit is contained in:
parent
7df0fbb614
commit
b6b07296ae
1 changed files with 14 additions and 3 deletions
|
@ -93,7 +93,8 @@ func start() error {
|
|||
module.instance.Config().EventConfigChange.AddCallback(
|
||||
"update custom filter list",
|
||||
func(wc *mgr.WorkerCtx, _ struct{}) (bool, error) {
|
||||
if err := checkAndUpdateFilterList(wc); !errors.Is(err, ErrNotConfigured) {
|
||||
err := checkAndUpdateFilterList(wc)
|
||||
if !errors.Is(err, ErrNotConfigured) {
|
||||
return false, err
|
||||
}
|
||||
return false, nil
|
||||
|
@ -224,8 +225,18 @@ func New(instance instance) (*CustomList, error) {
|
|||
mgr: m,
|
||||
instance: instance,
|
||||
|
||||
states: mgr.NewStateMgr(m),
|
||||
updateFilterListWorkerMgr: m.NewWorkerMgr("update custom filter list", checkAndUpdateFilterList, nil),
|
||||
states: mgr.NewStateMgr(m),
|
||||
updateFilterListWorkerMgr: m.NewWorkerMgr(
|
||||
"update custom filter list",
|
||||
func(ctx *mgr.WorkerCtx) error {
|
||||
err := checkAndUpdateFilterList(ctx)
|
||||
if !errors.Is(err, ErrNotConfigured) {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
},
|
||||
nil,
|
||||
),
|
||||
}
|
||||
|
||||
if err := prep(); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue