Minor optimization to bro_broker::Manager::FlushPendingQueries

This commit is contained in:
Jon Siwek 2018-06-14 12:41:21 -05:00
parent 8a00a2dbf8
commit 197ea03f8f

View file

@ -241,9 +241,18 @@ void Manager::FlushPendingQueries()
{
// possibly an infinite loop if a query can recursively
// generate more queries...
Process();
for ( auto& s : data_stores )
{
while ( ! s.second->proxy.mailbox().empty() )
{
auto response = s.second->proxy.receive();
ProcessStoreResponse(s.second, move(response));
}
}
}
SetIdle(false);
}
uint16_t Manager::Listen(const string& addr, uint16_t port)
{