diff options
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 32796fb01..c4d71b8ca 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -2873,7 +2873,6 @@ lua_periodic_callback (gint unused_fd, short what, gpointer ud) *pev_base = periodic->ev_base; event_del (&periodic->ev); - lua_thread_call (thread, 2); } @@ -2888,6 +2887,10 @@ lua_periodic_callback_finish (struct thread_entry *thread, int ret) L = thread->lua_state; +#ifdef HAVE_EVENT_NO_CACHE_TIME_FUNC + event_base_update_cache_time (periodic->ev_base); +#else + if (ret == 0) { if (lua_type (L, -1) == LUA_TBOOLEAN) { plan_more = lua_toboolean (L, -1); |