From 06f67db16bcc22784271ab10e1fe61372fe07ca7 Mon Sep 17 00:00:00 2001 From: Matt Wells Date: Sun, 15 Dec 2013 10:43:34 -0700 Subject: [PATCH] forgot to unlock thread lock --- Log.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Log.cpp b/Log.cpp index 83670706..7d00ca57 100644 --- a/Log.cpp +++ b/Log.cpp @@ -194,8 +194,12 @@ bool Log::logR ( long long now , long type , char *msg , bool asterisk , // . skip all logging if power out, we do not want to screw things up // . allow logging for 10 seconds after power out though - if ( ! g_process.m_powerIsOn && now - g_process.m_powerOffTime > 10000) + if ( ! g_process.m_powerIsOn && now - g_process.m_powerOffTime >10000){ +#ifdef PTHREADS + pthread_mutex_unlock ( &s_lock ); +#endif return false; + } //if ( now == 0 ) now = g_nowApprox; // chop off any spaces at the end of the msg.