Fix. Remove task in next.lua

This commit is contained in:
Alexey Melnichuk 2015-11-26 17:25:15 +03:00
parent ac44787e36
commit b00229e5fc
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ local function next_task()
if not ok then
Tasks.release_task(task)
if task.status ~= 0 then
Tasks.remove_task(task)
end
log.noticef("Error execute task: %s", tostring(err))
end