diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-03-02 23:07:20 -0800 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-03-02 23:07:20 -0800 |
commit | 886aae2ab94c74a4d4c644c446f67d37a333c1f9 (patch) | |
tree | c6ea5eee0a9f0f0f6c6fe5e24fa095a5f2363ad5 /src/async | |
parent | c32070da4d05124db4f4f91a83e737747199ef54 (diff) |
Fixed deadlock
Diffstat (limited to 'src/async')
-rwxr-xr-x | src/async/imap/MCIMAPAsyncConnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cpp b/src/async/imap/MCIMAPAsyncConnection.cpp index 0dc29ee0..ff12c881 100755 --- a/src/async/imap/MCIMAPAsyncConnection.cpp +++ b/src/async/imap/MCIMAPAsyncConnection.cpp @@ -365,13 +365,13 @@ void IMAPAsyncConnection::setConnectionLogger(ConnectionLogger * logger) { pthread_mutex_lock(&mConnectionLoggerLock); mConnectionLogger = logger; - if (mConnectionLogger != NULL) { + pthread_mutex_unlock(&mConnectionLoggerLock); + if (logger != NULL) { mSession->setConnectionLogger(mInternalLogger); } else { mSession->setConnectionLogger(NULL); } - pthread_mutex_unlock(&mConnectionLoggerLock); } ConnectionLogger * IMAPAsyncConnection::connectionLogger() |