Do not stop dbQueue in logTerm. dbQueue is not just for logging.

This commit is contained in:
Isaac Connor 2021-05-04 14:22:02 -04:00
parent 0b6e414998
commit 8f27db5d6f
3 changed files with 2 additions and 1 deletions

View File

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

View File

@ -382,6 +382,7 @@ int main(int argc, char *argv[]) {
Image::Deinitialise();
Debug(1, "terminating");
logTerm();
dbQueue.stop();
zmDbClose();
return zm_terminate ? 0 : result;

View File

@ -342,6 +342,7 @@ int main(int argc, const char *argv[], char **envp) {
Debug(1, "Terminating");
Image::Deinitialise();
logTerm();
dbQueue.stop();
zmDbClose();
return 0;