Suppress error when stopping during filterlist update

This commit is contained in:
Daniel
2022-06-09 13:49:34 +02:00
parent c9b9a0b1d1
commit 0439894efc

View File

@@ -24,6 +24,11 @@ var updateInProgress = abool.New()
func tryListUpdate(ctx context.Context) error {
err := performUpdate(ctx)
if err != nil {
// Check if we are shutting down.
if module.IsStopping() {
return nil
}
// Check if the module already has a failure status set. If not, set a
// generic one with the returned error.
failureStatus, _, _ := module.FailureStatus()