summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-03 17:35:00 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-03 17:35:00 (GMT)
commit6b1fda16546e6d77c49112ecbba22103f8d859c0 (patch)
tree2f88e5cf9021823e61303ec8bec64c8afb3c231a
parent41b11ca2c9dfbcd570dbb60b350ed010316b4d95 (diff)
downloadlibcalendaring-6b1fda16546e6d77c49112ecbba22103f8d859c0.tar.gz
Made the mutex recursive to prevent deadlocks.
-rw-r--r--kimap/sessionthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kimap/sessionthread.cpp b/kimap/sessionthread.cpp
index b7a1cb9..5482aea 100644
--- a/kimap/sessionthread.cpp
+++ b/kimap/sessionthread.cpp
@@ -37,7 +37,7 @@ static const int _kimap_sslErrorUiData = qRegisterMetaType<KSslErrorUiData>();
SessionThread::SessionThread( const QString &hostName, quint16 port, Session *parent )
: QThread(), m_hostName(hostName), m_port(port),
- m_session(parent), m_socket(0), m_stream(0), m_encryptedMode(false)
+ m_session(parent), m_socket(0), m_stream(0), m_mutex(QMutex::Recursive), m_encryptedMode(false)
{
// Yeah, sounds weird, but QThread object is linked to the parent
// thread not to itself, and I'm too lazy to introduce yet another