output/httpd: add missing mutex lock

This commit is contained in:
Max Kellermann 2019-04-03 22:53:03 +02:00
parent 9111bc2c21
commit 380656d8c9
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.21.8 (not yet released) ver 0.21.8 (not yet released)
* output
- httpd: add missing mutex lock
* fix build failure with GCC 9 * fix build failure with GCC 9
ver 0.21.7 (2019/04/03) ver 0.21.7 (2019/04/03)

View File

@ -154,7 +154,7 @@ HttpdClient::SendResponse() noexcept
FormatWarning(httpd_output_domain, FormatWarning(httpd_output_domain,
"failed to write to client: %s", "failed to write to client: %s",
(const char *)msg); (const char *)msg);
Close(); LockClose();
return false; return false;
} }