From 8c32fa3e6c78adedac339a5fc2047a1953a24ae3 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 3 Dec 2025 14:13:22 +0800 Subject: [PATCH] fix: Fix the issue of abnormal clam scan status judgment (#11172) --- agent/utils/clam/clam.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agent/utils/clam/clam.go b/agent/utils/clam/clam.go index 686fcceea..b10e16f86 100644 --- a/agent/utils/clam/clam.go +++ b/agent/utils/clam/clam.go @@ -65,12 +65,12 @@ func AnalysisFromLog(pathItem string, record *model.ClamRecord) { func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool { if withCheck { - isActive := false - isexist, _ := controller.CheckExist("clam") - if isexist { - isActive, _ = controller.CheckActive("clam") + isExist, _ := controller.CheckExist("clam") + if !isExist { + return false } - if isActive { + isActive, _ := controller.CheckActive("clam") + if !isActive { return false } }