summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-03 22:53:03 +0200
committerMax Kellermann <max@musicpd.org>2019-04-03 22:53:03 +0200
commit380656d8c97d37c0d97025d64c01cba887245d46 (patch)
treea53ca010a82c2bce287668eb3a267a11f401d2f5
parent9111bc2c2164feeb976e489b4a50111afb11c3fa (diff)
output/httpd: add missing mutex lock
-rw-r--r--NEWS2
-rw-r--r--src/output/plugins/httpd/HttpdClient.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 388f8dd7b..6712fdf37 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.21.8 (not yet released)
+* output
+ - httpd: add missing mutex lock
* fix build failure with GCC 9
ver 0.21.7 (2019/04/03)
diff --git a/src/output/plugins/httpd/HttpdClient.cxx b/src/output/plugins/httpd/HttpdClient.cxx
index df4e6ded1..205689462 100644
--- a/src/output/plugins/httpd/HttpdClient.cxx
+++ b/src/output/plugins/httpd/HttpdClient.cxx
@@ -154,7 +154,7 @@ HttpdClient::SendResponse() noexcept
FormatWarning(httpd_output_domain,
"failed to write to client: %s",
(const char *)msg);
- Close();
+ LockClose();
return false;
}