Do not stop dbQueue in logTerm. dbQueue is not just for logging.
This commit is contained in:
parent
0b6e414998
commit
8f27db5d6f
|
@ -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;
|
||||
|
|
|
@ -382,6 +382,7 @@ int main(int argc, char *argv[]) {
|
|||
Image::Deinitialise();
|
||||
Debug(1, "terminating");
|
||||
logTerm();
|
||||
dbQueue.stop();
|
||||
zmDbClose();
|
||||
|
||||
return zm_terminate ? 0 : result;
|
||||
|
|
|
@ -342,6 +342,7 @@ int main(int argc, const char *argv[], char **envp) {
|
|||
Debug(1, "Terminating");
|
||||
Image::Deinitialise();
|
||||
logTerm();
|
||||
dbQueue.stop();
|
||||
zmDbClose();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue