diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-11 18:56:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-11 18:56:11 +0200 |
commit | f26390b484717b90bc98b2eb6f52769d57c36f0b (patch) | |
tree | 6b15014b0bfd9f4b2089a2e37315d622ebd19fcb /util-src/poll.c | |
parent | fda067d696e762609b0a78a9af6b1145597f3ddb (diff) | |
download | prosody-f26390b484717b90bc98b2eb6f52769d57c36f0b.tar.gz prosody-f26390b484717b90bc98b2eb6f52769d57c36f0b.zip |
util.poll: Fix inverted logic
Diffstat (limited to 'util-src/poll.c')
-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; } |