diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lua/rocklib_events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib_events.c b/apps/plugins/lua/rocklib_events.c index 1c13a6758f..0cdec20213 100644 --- a/apps/plugins/lua/rocklib_events.c +++ b/apps/plugins/lua/rocklib_events.c | |||
@@ -253,7 +253,9 @@ static int lua_rev_callback(lua_State *L, struct cb_data *evt) | |||
253 | lua_pushlightuserdata(L, evt->data); | 253 | lua_pushlightuserdata(L, evt->data); |
254 | 254 | ||
255 | lua_status = lua_resume(L, 2); /* call the saved function */ | 255 | lua_status = lua_resume(L, 2); /* call the saved function */ |
256 | if (lua_status == LUA_YIELD) /* coroutine.yield() disallowed */ | 256 | if (lua_status == LUA_SUCCESS) |
257 | lua_settop(L, 0); /* eat any value(s) returned */ | ||
258 | else if (lua_status == LUA_YIELD) /* coroutine.yield() disallowed */ | ||
257 | luaL_where(L, 1); /* push error string on stack */ | 259 | luaL_where(L, 1); /* push error string on stack */ |
258 | 260 | ||
259 | return lua_status; | 261 | return lua_status; |