Software /
code /
prosody
File
util/xpcall.lua @ 12489:8b42575738f0 0.12
mod_cron: Fix recording last task run time #1751
The type checks, they do nothing!
Observed: Tasks that were supposed to run weekly or daily were running
each hour.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 May 2022 14:10:59 +0200 |
parent | 9561:cfc7b2f7251e |
child | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"util.compat".xpcall; end return { xpcall = xpcall; };