Mercurial > prosody-hg
view util/xpcall.lua @ 14208:9c062f243d3a 13.0
net.unbound: Let in-flight queries complete after re-initialization
This is meant to reduce potential disruption of in-flight queries on
reload.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 30 May 2026 19:18:21 +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; };
