fix: Fix the issue of abnormal clam scan status judgment

This commit is contained in:
ssongliu 2025-12-03 14:12:32 +08:00
parent 5ff5b0a5ad
commit 2d18bd868f

View file

@ -65,12 +65,12 @@ func AnalysisFromLog(pathItem string, record *model.ClamRecord) {
func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool { func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool {
if withCheck { if withCheck {
isActive := false isExist, _ := controller.CheckExist("clam")
isexist, _ := controller.CheckExist("clam") if !isExist {
if isexist { return false
isActive, _ = controller.CheckActive("clam")
} }
if isActive { isActive, _ := controller.CheckActive("clam")
if !isActive {
return false return false
} }
} }