view util/xpcall.lua @ 14209:c4aa9b2b4787 13.0

net.unbound: Simplify by removing cancel() Not aware that it is used anywhere. Removes potential "leak" by forgetting to remove the entry from the now deleted table.
author Kim Alvefur <zash@zash.se>
date Sat, 30 May 2026 19:21:08 +0200
parents d10957394a3c
children
line wrap: on
line source

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"prosody.util.compat".xpcall;
end

return {
	xpcall = xpcall;
};