Mercurial > prosody-hg
view util/xpcall.lua @ 10810:8a0a923e1ced
mod_s2s: Run stream close in async context
Allows async processing during stream shutdown. Fixes potential ASYNC-01
issues, however no such issues known at the time of this commit.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 08 May 2020 23:55:51 +0200 |
| 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; };
