src/lua_objs.c
branchlua-threads
changeset 207 3fa22abb5421
parent 203 ffdf53fd0337
child 211 b460d958a685
--- a/src/lua_objs.c	Thu May 21 16:23:27 2009 +0300
+++ b/src/lua_objs.c	Thu May 21 16:23:50 2009 +0300
@@ -369,7 +369,7 @@
     
     // schedule wakeup
     // use a pure-timeout event
-    if (event_base_once(lua_nexus->nexus->ev_base, -1, 0, lua_nexus_sleep_wakeup, L, &tv))
+    if (event_base_once(lua_nexus->nexus->ev_base, -1, EV_TIMEOUT, lua_nexus_sleep_wakeup, L, &tv))
         return luaL_error(L, "event_base_once");
 
     // yield