diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx index 35cd0a8dd..5068cba9f 100644 --- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx +++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx @@ -343,13 +343,17 @@ HttpdOutput::BroadcastFromEncoder() cond.wait(mutex); } + bool empty = true; + PagePtr page; while ((page = ReadPage()) != nullptr) { const std::lock_guard lock(mutex); pages.push(std::move(page)); + empty = false; } - DeferredMonitor::Schedule(); + if (!empty) + DeferredMonitor::Schedule(); } inline void