view util/xpcall.lua @ 13559:eedae7d47784 0.12

MUC: optimizations for broadcast of visitor presence (thanks Jitsi team) This avoids doing performing unnecessary work in the case of visitors joining a MUC, no functionality changes are intended.
author Matthew Wild <mwild1@gmail.com>
date Fri, 15 Nov 2024 14:36:41 +0000
parents cfc7b2f7251e
children 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;
};