Don't unlock db_mutex if we don't get the lock in the first place
parent
192aae8e30
commit
583779438b
|
@ -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));
|
Error("Can't insert log entry: sql(%s) error(%s)", syslogStart, mysql_error(&dbconn));
|
||||||
databaseLevel(tempDatabaseLevel);
|
databaseLevel(tempDatabaseLevel);
|
||||||
}
|
}
|
||||||
db_mutex.unlock();
|
|
||||||
} // end if level <= mDatabaseLevel
|
} // end if level <= mDatabaseLevel
|
||||||
|
|
||||||
if ( level <= mSyslogLevel ) {
|
if ( level <= mSyslogLevel ) {
|
||||||
|
|
Loading…
Reference in New Issue