Changeset View
Changeset View
Standalone View
Standalone View
resources/imap/sessionpool.cpp
Show First 20 Lines • Show All 567 Lines • ▼ Show 20 Line(s) | 564 | if (m_unusedPool.isEmpty() && m_reservedPool.isEmpty()) { | |||
---|---|---|---|---|---|
568 | m_namespaces.clear(); | 568 | m_namespaces.clear(); | ||
569 | m_capabilities.clear(); | 569 | m_capabilities.clear(); | ||
570 | 570 | | |||
571 | m_initialConnectDone = false; | 571 | m_initialConnectDone = false; | ||
572 | } | 572 | } | ||
573 | 573 | | |||
574 | Q_EMIT connectionLost(session); | 574 | Q_EMIT connectionLost(session); | ||
575 | 575 | | |||
576 | if (!m_pendingRequests.isEmpty()) { | ||||
577 | cancelSessionCreation(nullptr, CouldNotConnectError, QString()); | ||||
578 | } | ||||
579 | | ||||
576 | session->deleteLater(); | 580 | session->deleteLater(); | ||
577 | if (session == m_pendingInitialSession) { | 581 | if (session == m_pendingInitialSession) { | ||
578 | m_pendingInitialSession = nullptr; | 582 | m_pendingInitialSession = nullptr; | ||
579 | } | 583 | } | ||
580 | } | 584 | } | ||
581 | 585 | | |||
582 | void SessionPool::onSessionDestroyed(QObject *object) | 586 | void SessionPool::onSessionDestroyed(QObject *object) | ||
583 | { | 587 | { | ||
Show All 20 Lines |