diff --git a/lib/harmony/harmonytask/harmonytask.go b/lib/harmony/harmonytask/harmonytask.go index b175aa61b27..feccae8633b 100644 --- a/lib/harmony/harmonytask/harmonytask.go +++ b/lib/harmony/harmonytask/harmonytask.go @@ -345,6 +345,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 }