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 {
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
}
}