From 778a4f1d8428d0079bce8393788135eca918b695 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 24 Feb 2021 13:48:36 -0500 Subject: [PATCH] We cannot wait for the db lock. Do not wait. --- src/zm_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index 75a188abb..f5b788512 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -535,7 +535,7 @@ void Logger::logPrint(bool hex, const char * const filepath, const int line, con } // end if level <= mFileLevel if ( level <= mDatabaseLevel ) { - if (db_mutex.try_lock_for(1)) { + if (db_mutex.try_lock) { int syslogSize = syslogEnd-syslogStart; char escapedString[(syslogSize*2)+1]; mysql_real_escape_string(&dbconn, escapedString, syslogStart, syslogSize);