diff options
Diffstat (limited to 'xmake/core/base/timer.lua')
| -rw-r--r-- | xmake/core/base/timer.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/base/timer.lua b/xmake/core/base/timer.lua index 96a876bcb..78e1026cd 100644 --- a/xmake/core/base/timer.lua +++ b/xmake/core/base/timer.lua @@ -86,7 +86,10 @@ function timer:next() end -- run timer task if task.func then - task.func(task.cancel) + local ok, errors = task.func(task.cancel) + if not ok then + return false, errors + end triggered = true end end @@ -95,6 +98,7 @@ function timer:next() break end end + return true end -- kill all timer tasks |
