mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 05:49:02 +08:00
fix: Fix the issue of abnormal clam scan status judgment
This commit is contained in:
parent
5ff5b0a5ad
commit
2d18bd868f
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 {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue