Message ID | 464be47b.1d751.14e9634f930.Coremail.ewolfok@126.com |
---|---|
State | Superseded |
Headers | show |
--- a/lua/uloop.c +++ b/lua/uloop.c @@ -77,9 +77,9 @@ static int ul_timer_set(lua_State *L) static int ul_timer_free(lua_State *L) { struct lua_uloop_timeout *tout = lua_touserdata(L, 1); - + uloop_timeout_cancel(&tout->t); - + /* obj.__index.__gc = nil , make sure executing only once*/ lua_getfield(L, -1, "__index"); lua_pushstring(L, "__gc"); @@ -181,7 +181,7 @@ static int get_sock_fd(lua_State* L, int static int ul_ufd_delete(lua_State *L) { struct lua_uloop_fd *ufd = lua_touserdata(L, 1); - + uloop_fd_delete(&ufd->fd);