Immediately apply broker subscriptions made during bro_init()

Otherwise that's begging for unit test failures due to races
This commit is contained in:
Jon Siwek 2018-08-10 17:12:53 -05:00
parent 083947af41
commit 67524f26d5
7 changed files with 24 additions and 5 deletions

View file

@ -1182,6 +1182,7 @@ int main(int argc, char** argv)
// Drain the event queue here to support the protocols framework configuring DPM
mgr.Drain();
broker_mgr->BroInitDone();
analyzer_mgr->DumpDebug();
have_pending_timers = ! reading_traces && timer_mgr->Size() > 0;