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

This commit is contained in:
Isaac Connor 2019-04-15 17:54:17 -04:00
parent 22adb243ec
commit 70ed4a4646
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 )