b=180806 IMAP backend should avoid unnecessary logout

r=bienvenu sr=sspitzer
This commit is contained in:
kaie%netscape.com 2002-11-28 18:36:36 +00:00
Родитель 210417ee19
Коммит 20efdc8b4f
1 изменённых файлов: 20 добавлений и 17 удалений

Просмотреть файл

@ -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);