From 0439894efc3097214178a31e70718f66b81c4c09 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 9 Jun 2022 13:49:34 +0200 Subject: [PATCH] Suppress error when stopping during filterlist update --- intel/filterlists/updater.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/intel/filterlists/updater.go b/intel/filterlists/updater.go index ff5ce3e9..7d15e85e 100644 --- a/intel/filterlists/updater.go +++ b/intel/filterlists/updater.go @@ -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()