summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Beltrame <[email protected]>2018-01-09 20:17:20 +0100
committerLuca Beltrame <[email protected]>2018-01-09 20:17:20 +0100
commit96e83e94eaa2275c1b1a403e82cd42be13b0ddf0 (patch)
tree94583a0a4c558174b54903768f243635f3d89416
parent72c073488ec1460e218efcfcbed913b6e84f53b1 (diff)
Revert "Use new connect api"
This reverts commit 94b979956b9012b2ed9f7821ae02cf5c683c849a. This causes massive memory leaks and makes maildispatcher unable to send mails. CCMAIL: [email protected]
-rw-r--r--src/session.cpp4
-rw-r--r--src/sessionthread.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/session.cpp b/src/session.cpp
index bf568cb..2129f72 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -356,12 +356,8 @@ void SessionPrivate::socketDisconnected()
void SessionPrivate::startSsl(KTcpSocket::SslVersion version)
{
-#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
- QMetaObject::invokeMethod(m_thread, [this, version] {m_thread->startSsl(version); }, Qt::QueuedConnection);
-#else
QMetaObject::invokeMethod(m_thread, "startSsl", Qt::QueuedConnection,
Q_ARG(KTcpSocket::SslVersion, version));
-#endif
}
KTcpSocket::SslVersion SessionPrivate::negotiatedEncryption() const
diff --git a/src/sessionthread.cpp b/src/sessionthread.cpp
index c291ba3..c195826 100644
--- a/src/sessionthread.cpp
+++ b/src/sessionthread.cpp
@@ -229,12 +229,8 @@ void SessionThread::sslConnected()
void SessionThread::handleSslErrorResponse(bool ignoreError)
{
-#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
- QMetaObject::invokeMethod(this, [this, ignoreError] {doHandleSslErrorResponse(ignoreError); }, Qt::QueuedConnection);
-#else
QMetaObject::invokeMethod(this, "doHandleSslErrorResponse", Qt::QueuedConnection,
Q_ARG(bool, ignoreError));
-#endif
}
void SessionThread::doHandleSslErrorResponse(bool ignoreError)