Must unlock mutex before destructor as we do some logging in the mutex destructor when we destroy it while locked.

pull/2618/head
Isaac Connor 2019-04-15 17:54:17 -04:00
parent 14791ec19b
commit 293ec20824
1 changed files with 1 additions and 0 deletions

View File

@ -572,6 +572,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
free(filecopy); free(filecopy);
if ( level <= FATAL ) { if ( level <= FATAL ) {
log_mutex.unlock();
logTerm(); logTerm();
zmDbClose(); zmDbClose();
if ( level <= PANIC ) if ( level <= PANIC )