Changeset

9478:bd178ed0459b

util.poll: Fix inverted logic
author Kim Alvefur <zash@zash.se>
date Thu, 11 Oct 2018 18:56:11 +0200
parents 9477:0738f5276e0a
children 9479:3a683b2476e2
files util-src/poll.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}