diff --git a/audio-mixer/src/main.cpp b/audio-mixer/src/main.cpp index 04a8ae0885..4aaef6ade0 100644 --- a/audio-mixer/src/main.cpp +++ b/audio-mixer/src/main.cpp @@ -120,7 +120,7 @@ int main(int argc, const char* argv[]) { gettimeofday(&lastDomainServerCheckIn, NULL); AgentList::getInstance()->sendDomainServerCheckIn(); - if (Logstash::shouldSendStats()) { + if (Logstash::shouldSendStats() && numStatCollections > 0) { // if we should be sending stats to Logstash send the appropriate average now const char MIXER_LOGSTASH_METRIC_NAME[] = "audio-mixer-frame-time-usage";