aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcorolib.c')
-rw-r--r--lcorolib.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lcorolib.c b/lcorolib.c
index a21880d5..3fc9fb1c 100644
--- a/lcorolib.c
+++ b/lcorolib.c
@@ -35,10 +35,6 @@ static int auxresume (lua_State *L, lua_State *co, int narg) {
35 lua_pushliteral(L, "too many arguments to resume"); 35 lua_pushliteral(L, "too many arguments to resume");
36 return -1; /* error flag */ 36 return -1; /* error flag */
37 } 37 }
38 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) {
39 lua_pushliteral(L, "cannot resume dead coroutine");
40 return -1; /* error flag */
41 }
42 lua_xmove(L, co, narg); 38 lua_xmove(L, co, narg);
43 status = lua_resume(co, L, narg, &nres); 39 status = lua_resume(co, L, narg, &nres);
44 if (status == LUA_OK || status == LUA_YIELD) { 40 if (status == LUA_OK || status == LUA_YIELD) {