Suppress error when stopping during filterlist update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user