X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=blobdiff_plain;f=src%2Flib%2Fhttpd.c;h=1d9e7e2eb454334efec4f6e7ba106a7f9c9104a7;hp=757f05064ae49b9cb14b9b95cbc3c2e86487d7c0;hb=c5f6526802d1bf48635941f564552ef059dbc1f4;hpb=fd7070e236b4cbca69e9bdf7152fef1429b6f8d0 diff --git a/src/lib/httpd.c b/src/lib/httpd.c index 757f050..1d9e7e2 100644 --- a/src/lib/httpd.c +++ b/src/lib/httpd.c @@ -304,6 +304,11 @@ httpd_thread(void *arg) } written += ret; } + + if (http_response_get_disconnect(response)) { + logger_log(httpd->logger, LOGGER_INFO, "Disconnecting on software request"); + httpd_remove_connection(httpd, connection); + } } else { logger_log(httpd->logger, LOGGER_INFO, "Didn't get response"); }