Browse Source

修复结束中状态没有重置

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
18edc6696b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      internal/logic/cron_helper/cron_helper.go

+ 1 - 0
internal/logic/cron_helper/cron_helper.go

@@ -163,6 +163,7 @@ func (ch *CronHelper) Stop() {
 
 
 	ch.cronLock.Lock()
 	ch.cronLock.Lock()
 	ch.cronHelperRunning = false
 	ch.cronHelperRunning = false
+	ch.stopping = false
 	ch.cronLock.Unlock()
 	ch.cronLock.Unlock()
 
 
 	common.SetSubScanJobStatusNil()
 	common.SetSubScanJobStatusNil()