Fix a deadlock w/ SQLite.

sqlite3_shutdown() was called a bit too early, when SQLite-using
threads may still have yet to fully shutdown.
This commit is contained in:
Jon Siwek 2013-08-19 14:18:18 -05:00
parent ee8111441a
commit dc370fdd8d

View file

@ -1154,10 +1154,10 @@ int main(int argc, char** argv)
curl_global_cleanup();
#endif
sqlite3_shutdown();
terminate_bro();
sqlite3_shutdown();
// Close files after net_delete(), because net_delete()
// might write to connection content files.
BroFile::CloseCachedFiles();