mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-11 21:06:08 +08:00
fix: Fix the issue of abnormal clam scan status judgment (#11172)
This commit is contained in:
parent
fef13211a0
commit
8c32fa3e6c
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue