Commit 512e81c6 authored by Max Kellermann's avatar Max Kellermann

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

parent 452666f7
...@@ -348,7 +348,7 @@ HttpdOutput::BroadcastFromEncoder() ...@@ -348,7 +348,7 @@ HttpdOutput::BroadcastFromEncoder()
PagePtr page; PagePtr page;
while ((page = ReadPage()) != nullptr) { while ((page = ReadPage()) != nullptr) {
const std::lock_guard<Mutex> lock(mutex); const std::lock_guard<Mutex> lock(mutex);
pages.push(std::move(page)); pages.emplace(std::move(page));
empty = false; empty = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment