Fix file analysis events from coming after bro_done().

BIT-1256 #close
This commit is contained in:
Jon Siwek 2014-09-18 14:29:46 -05:00
parent e5bd113286
commit 17d60ea8ac
3 changed files with 10 additions and 2 deletions

View file

@ -341,6 +341,10 @@ void terminate_bro()
terminating = true;
// File analysis termination may produce events, so do it early on in
// the termination process.
file_mgr->Terminate();
brofiler.WriteStats();
EventHandlerPtr bro_done = internal_handler("bro_done");
@ -365,7 +369,6 @@ void terminate_bro()
mgr.Drain();
file_mgr->Terminate();
log_mgr->Terminate();
input_mgr->Terminate();
thread_mgr->Terminate();