aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/poll.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-11 18:56:11 +0200
committerKim Alvefur <zash@zash.se>2018-10-11 18:56:11 +0200
commit6ebfbff3621e792043e22450ff5f3703d0403bbe (patch)
tree6b15014b0bfd9f4b2089a2e37315d622ebd19fcb /util-src/poll.c
parent1620e8c7c7d899207bc8c405aa0dd3d87f3e3c55 (diff)
downloadprosody-6ebfbff3621e792043e22450ff5f3703d0403bbe.tar.gz
prosody-6ebfbff3621e792043e22450ff5f3703d0403bbe.zip
util.poll: Fix inverted logic
Diffstat (limited to 'util-src/poll.c')
-rw-r--r--util-src/poll.c2
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;
}