diff --git a/server.c b/server.c index 3cff970..6167db3 100644 --- a/server.c +++ b/server.c @@ -230,13 +230,13 @@ again: res = poll(fds, n, -1); - if (res < 0) + if (do_exit) + { + *exit = true; + goto end; + } + else if (res < 0) { - if (do_exit) - { - *exit = true; - goto end; - } switch (errno) {