Software /
code /
prosody
File
util/xpcall.lua @ 13343:9a9455de295d
mod_storage_internal: Only close lazy-loading list store abstractions
Since datamanager can fall back to the old method of loading the whole
list, which wouldn't come with a :close method.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Nov 2023 14:29:08 +0100 |
parent | 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"prosody.util.compat".xpcall; end return { xpcall = xpcall; };