From db5e2d2b47afd52b659e6b47d0161ca46add8b99 Mon Sep 17 00:00:00 2001
From: Lawrence Rust <lvr@softsystem.co.uk>
Date: Mon, 1 Aug 2011 11:07:28 +0200
Subject: [PATCH] logging: fix unbalanced mutex unlock
commit df84a066070 caused an unbalanced mutex lock/unlock in
DBLoggerThread::run
Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
---
mythtv/libs/libmythbase/logging.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/mythtv/libs/libmythbase/logging.cpp b/mythtv/libs/libmythbase/logging.cpp
index c001b31..c121f8a 100644
a
|
b
|
void DBLoggerThread::run(void) |
491 | 491 | qLock.relock(); |
492 | 492 | m_queue->prepend(item); |
493 | 493 | m_wait->wait(qLock.mutex(), 100); |
| 494 | continue; |
494 | 495 | } |
495 | 496 | } |
496 | 497 | else |
497 | 498 | { |
498 | 499 | deleteItem(item); |
499 | | qLock.relock(); |
500 | 500 | } |
| 501 | |
| 502 | qLock.relock(); |
501 | 503 | } |
502 | 504 | |
503 | 505 | MSqlQuery::CloseLogCon(); |