зеркало из https://github.com/mozilla/pjs.git
b=180806 IMAP backend should avoid unnecessary logout
r=bienvenu sr=sspitzer
This commit is contained in:
Родитель
210417ee19
Коммит
20efdc8b4f
|
@ -1000,6 +1000,8 @@ nsImapProtocol::TellThreadToDie(PRBool isSaveToClose)
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
PRUint32 writeCount;
|
PRUint32 writeCount;
|
||||||
|
|
||||||
|
if (m_currentServerCommandTagNumber > 0)
|
||||||
|
{
|
||||||
if (closeNeeded && GetDeleteIsMoveToTrash() &&
|
if (closeNeeded && GetDeleteIsMoveToTrash() &&
|
||||||
TestFlag(IMAP_CONNECTION_IS_OPEN) && m_outputStream)
|
TestFlag(IMAP_CONNECTION_IS_OPEN) && m_outputStream)
|
||||||
{
|
{
|
||||||
|
@ -1020,6 +1022,7 @@ nsImapProtocol::TellThreadToDie(PRBool isSaveToClose)
|
||||||
&writeCount);
|
&writeCount);
|
||||||
Log("SendData", "TellThreadToDie", command.get());
|
Log("SendData", "TellThreadToDie", command.get());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mAsyncReadRequest)
|
if (mAsyncReadRequest)
|
||||||
mAsyncReadRequest->Cancel(NS_OK);
|
mAsyncReadRequest->Cancel(NS_OK);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче