fix bug in should-finish instruction
This commit is contained in:
parent
bf4f156714
commit
ecf0676d67
@ -30,9 +30,7 @@ func newTaskMan(delay int, callUrl string) *TaskMan {
|
||||
go func() {
|
||||
for {
|
||||
<-t.waitChan
|
||||
if len(t.waitQueue) < 1 {
|
||||
return
|
||||
}
|
||||
if len(t.waitQueue) >= 1 {
|
||||
cf := t.waitQueue[len(t.waitQueue)-1]
|
||||
if len(t.waitQueue) > 1 {
|
||||
logInfo("redundant tasks dropped:", len(t.waitQueue)-1)
|
||||
@ -40,6 +38,7 @@ func newTaskMan(delay int, callUrl string) *TaskMan {
|
||||
t.waitQueue = []*changedFile{}
|
||||
go t.preRun(cf)
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user