X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=blobdiff_plain;f=src%2Flib%2Fhttpd.c;h=88971faa5f57451b22d58a1959da108bd9229e68;hp=7606933696e1cb8548dc57e326bd346221a831d5;hb=2e66aa96aa9068a75c6524796d9fb8392a2e27ba;hpb=870f342f5de7311f7895f2ca96a8bdd7df20e046 diff --git a/src/lib/httpd.c b/src/lib/httpd.c index 7606933..88971fa 100644 --- a/src/lib/httpd.c +++ b/src/lib/httpd.c @@ -240,7 +240,7 @@ httpd_thread(void *arg) continue; } } - if (FD_ISSET(httpd->server_fd6, &rfds)) { + if (httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { ret = httpd_accept_connection(httpd, httpd->server_fd6, 1); if (ret == -1) { break;