diff options
-rw-r--r-- | util-src/poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/poll.c b/util-src/poll.c index d2d9dc03..7fd28524 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -351,7 +351,7 @@ int Lgetfd(lua_State *L) { int Lgc(lua_State *L) { struct Lpoll_state *state = luaL_checkudata(L, 1, STATE_MT); - if(state->epoll_fd != -1) { + if(state->epoll_fd == -1) { return 0; } |