From 2fc6b55dae7a120b4272ca0e9c356d1f96053bd9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 31 Oct 2018 16:25:29 -0300 Subject: Removed resource-related "emergency collections" New to-be-closed variables is a better way to ensure the proper release of resources. --- loslib.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'loslib.c') diff --git a/loslib.c b/loslib.c index 1962f55f..8809e5ea 100644 --- a/loslib.c +++ b/loslib.c @@ -166,8 +166,6 @@ static int os_tmpname (lua_State *L) { char buff[LUA_TMPNAMBUFSIZE]; int err; lua_tmpnam(buff, err); - if (err && luaL_resourcetryagain(L)) /* resource failure? */ - lua_tmpnam(buff, err); /* try again */ if (err) return luaL_error(L, "unable to generate a unique filename"); lua_pushstring(L, buff); -- cgit v1.2.3-55-g6feb