# HG changeset patch # User Tero Marttila # Date 1242914220 -10800 # Node ID b460d958a685cd505ebfcb4ad5dbfb00681eadf3 # Parent 05abca972db09969ad2de26b3b0d97436f5769de fix lua_nexus_sleep to use lua_thread_yield_state diff -r 05abca972db0 -r b460d958a685 src/lua_objs.c --- a/src/lua_objs.c Thu May 21 16:56:42 2009 +0300 +++ b/src/lua_objs.c Thu May 21 16:57:00 2009 +0300 @@ -1,6 +1,7 @@ #include "lua_objs.h" #include "lua_irc.h" #include "lua_func.h" +#include "lua_thread.h" #include "log.h" #include @@ -373,7 +374,7 @@ return luaL_error(L, "event_base_once"); // yield - return lua_yield(L, 0); + return lua_thread_yield_state(L); } static struct lua_method lua_nexus_methods[] = LUA_METHODS(