diff --git a/lib/harmony/harmonytask/harmonytask.go b/lib/harmony/harmonytask/harmonytask.go index 4f5daa963..0c66891d0 100644 --- a/lib/harmony/harmonytask/harmonytask.go +++ b/lib/harmony/harmonytask/harmonytask.go @@ -346,6 +346,7 @@ func (e *TaskEngine) pollerTryAllWork() bool { } // if no work was accepted, are we bored? Then find work in priority order. for _, v := range e.handlers { + v := v if v.AssertMachineHasCapacity() != nil { continue }