do dbQUeue.stop in logTerm so we don't have to have an extra line in every executable

This commit is contained in:
Isaac Connor 2021-05-01 14:48:26 -04:00
parent 48f79da892
commit 59b1927ad6
2 changed files with 1 additions and 1 deletions

View File

@ -570,6 +570,7 @@ void logInit(const char *name, const Logger::Options &options) {
}
void logTerm() {
dbQueue.stop();
if (Logger::smInstance) {
delete Logger::smInstance;
Logger::smInstance = nullptr;

View File

@ -378,7 +378,6 @@ int main(int argc, char *argv[]) {
}
Image::Deinitialise();
dbQueue.stop();
Debug(1, "terminating");
logTerm();
zmDbClose();