util-src/poll.c
changeset 9481 bd178ed0459b
parent 9479 f3935aa4cc7e
child 9509 ae6636052be9
--- 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;
 	}