<table><tr><td style="">dfaure created this revision.<br />dfaure added reviewers: ervin, knauss, dvratil.<br />Restricted Application added a project: KDE PIM.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12403">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If we lose the connection during the login job, we need to<br />
make sure that connectionLost is emitted by the pool so that ResourceTask<br />
will call cancelTask. Otherwise the resource will be stuck forever...</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Initially, playing with switching between WIFI networks at the right time (difficult).<br />
Then, calling SessionPool::onConnectionLost() by hand from LoginJob (great idea from Sandro).<br />
Now tested by the new unittest.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/18.04</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12403">https://phabricator.kde.org/D12403</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>resources/imap/autotests/testsessionpool.cpp<br />
resources/imap/sessionpool.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, ervin, knauss, dvratil<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>