output/httpd: move the clients.clear() call to the IOThread

This call is not thread-safe.
This commit is contained in:
Max Kellermann 2014-01-05 02:12:29 +01:00
parent dcbc05a9cd
commit 4ddfc6e9a2

View File

@ -347,7 +347,9 @@ HttpdOutput::Close()
delete timer;
clients.clear();
BlockingCall(GetEventLoop(), [this](){
clients.clear();
});
if (header != nullptr)
header->Unref();