Don't unlock db_mutex if we don't get the lock in the first place

pull/3143/head
Isaac Connor 2021-02-08 11:09:44 -05:00
parent 192aae8e30
commit 583779438b
1 changed files with 0 additions and 1 deletions

View File

@ -559,7 +559,6 @@ void Logger::logPrint(bool hex, const char * const filepath, const int line, con
Error("Can't insert log entry: sql(%s) error(%s)", syslogStart, mysql_error(&dbconn));
databaseLevel(tempDatabaseLevel);
}
db_mutex.unlock();
} // end if level <= mDatabaseLevel
if ( level <= mSyslogLevel ) {