summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c
index 217e247f3c..78623a0651 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -1193,7 +1193,7 @@ static int sparse_poll(struct pollfd *fds, int num_fds, int timeout)
for (int n = 0; n < num_fds; n++) {
map[n] = -1;
if (fds[n].fd < 0)
- break;
+ continue;
map[n] = p_num_fds;
p_fds[p_num_fds++] = fds[n];
}