[debug] Copy service from parent's state
@@ -130,11 +130,8 @@ const char *vm_copy_service(lua_State *L, lua_State *main)
{
int err;
int service;
-
- err = lua_cpcall(L, cp_getLuaExecContext, &service);
- if (err != 0) {
- return lua_tostring(L, -1);
- }
+ lua_cpcall(L, cp_getLuaExecContext, &service);
+ service = getLuaExecContext(main);
luaL_set_service(L, service);
return NULL;
}
