Software /
code /
prosody
File
util/xpcall.lua @ 11703:e57c5d9c722c
net.server_epoll: Fix traceback-causing typo
Caused "attempt to index a string value (local 'data')", but only if
keep_buffers is set to false, which is not the default.
Introduced in 917eca7be82b
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Jul 2021 08:53:37 +0200 |
parent | 9561:cfc7b2f7251e |
child | 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"util.compat".xpcall; end return { xpcall = xpcall; };