Do not suggest using stale DNS cache when disabled by user

This commit is contained in:
Daniel
2023-07-20 14:04:56 +02:00
parent 5fe78dbad5
commit fce1a7ac33
2 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ var suggestUsingStaleCacheNotification *notifications.Notification
func suggestUsingStaleCacheTask(ctx context.Context, t *modules.Task) error {
switch {
case useStaleCache():
case useStaleCache() || useStaleCacheConfigOption.IsSetByUser():
// If setting is already active, disable task repeating.
t.Repeat(0)