Rework para_accept().
[paraslash.git] / audiod.c
index 380e53e0fbae30cf9c949afea6d247d71396eb37..f0d450a6ee49ea784c226aa1b8ae04bff6ce0b95 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1023,9 +1023,7 @@ static void command_post_select(struct sched *s, struct task *t)
                last_status_dump = *now;
        }
 
-       if (!FD_ISSET(ct->fd, &s->rfds))
-               return;
-       ret = handle_connect(ct->fd);
+       ret = handle_connect(ct->fd, &s->rfds);
        if (ret < 0)
                PARA_ERROR_LOG("%s\n", para_strerror(-ret));
        audiod_status_dump();