mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-17 22:39:47 +02:00
Don't swallow errors in finalizers.
This commit is contained in:
@ -49,7 +49,7 @@ static void wrap(lua_State *L) {
|
||||
static int finalize(lua_State *L) {
|
||||
if (!lua_toboolean(L, 1)) {
|
||||
lua_pushvalue(L, lua_upvalueindex(1));
|
||||
lua_pcall(L, 0, 0, 0);
|
||||
lua_call(L, 0, 0);
|
||||
lua_settop(L, 2);
|
||||
wrap(L);
|
||||
lua_error(L);
|
||||
|
Reference in New Issue
Block a user