# HG changeset patch # User Kim Alvefur # Date 1539276971 -7200 # Node ID bd178ed0459b5f981d8fea64c21c85c0d57dce92 # Parent 0738f5276e0aab23d3fe02ba3dd3a4a4c72661e9 util.poll: Fix inverted logic diff -r 0738f5276e0a -r bd178ed0459b util-src/poll.c --- a/util-src/poll.c Thu Oct 11 18:53:15 2018 +0200 +++ b/util-src/poll.c Thu Oct 11 18:56:11 2018 +0200 @@ -351,7 +351,7 @@ 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; }