Skip to content

Commit e02c5b1

Browse files
committed
fix(runner): only check for errors when a task is no longer running
1 parent a0391c3 commit e02c5b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/lazy/manage/runner.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ function Runner:_start()
100100
local is_running = s.task and s.task:is_running()
101101
local step = self._pipeline[s.step]
102102

103+
if is_running then
104+
-- still running
105+
active = active + 1
103106
-- selene:allow(empty_if)
104-
if s.task and s.task:has_errors() then
107+
elseif s.task and s.task:has_errors() then
105108
-- don't continue tasks if there are errors
106109
elseif step and step.task == "wait" and not resume then
107110
-- waiting for sync
108111
waiting = waiting + 1
109112
wait_step = s.step
110-
elseif is_running then
111-
-- still running
112-
active = active + 1
113113
else
114114
next[#next + 1] = name
115115
end

0 commit comments

Comments
 (0)