aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c12
1 files changed, 6 insertions, 6 deletions
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)
{