Skip to content

Commit 80c1771

Browse files
author
egor.iskandarov
committed
utubettl: remove unnecessary on_task_change call
1 parent 445da1d commit 80c1771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

queue/abstract/driver/utubettl.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,10 @@ local function process_neighbour(self, task, operation)
294294
self:on_task_change(task, operation)
295295
if task ~= nil then
296296
local neighbour = self.space.index.utube:min{state.READY, task[i_utube]}
297-
if neighbour ~= nil and neighbour[i_status] == state.READY then
297+
if neighbour ~= nil
298+
and neighbour[i_utube] == task[i_utube]
299+
and neighbour[i_status] == state.READY
300+
then
298301
self:on_task_change(neighbour)
299302
end
300303
end

0 commit comments

Comments
 (0)