output/httpd: use emplace() instead of push()

This commit is contained in:
Max Kellermann 2017-02-19 20:48:17 +01:00
parent 452666f742
commit 512e81c629

View File

@ -348,7 +348,7 @@ HttpdOutput::BroadcastFromEncoder()
PagePtr page;
while ((page = ReadPage()) != nullptr) {
const std::lock_guard<Mutex> lock(mutex);
pages.push(std::move(page));
pages.emplace(std::move(page));
empty = false;
}