util.poll: Fix inverted logic

This commit is contained in:
Kim Alvefur 2018-10-11 18:56:11 +02:00
parent fda067d696
commit f26390b484

View file

@ -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;
}