fix user-defined event translator in libevent

This commit is contained in:
Kirigaya Kazuto 2019-11-10 13:18:44 +08:00
parent ed5ff49378
commit 4b2d10c2b8

View File

@ -308,7 +308,7 @@ local function TranslateEvent(e)
internal_evtbex[name](e,t) internal_evtbex[name](e,t)
-- Unknown Events. Args is packed into t.data (instead of returning the list) -- Unknown Events. Args is packed into t.data (instead of returning the list)
else else
t["data"]=table.pack(e,2) t["data"]=table.pack(table.unpack(e, 2))
end end
setmetatable(t,{__index=function(xt,xk) setmetatable(t,{__index=function(xt,xk)