part of a fix for 206408 retry urls after net timeout, if we were connected to the server, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-09-25 23:02:33 +00:00
Родитель 6159288b37
Коммит 076b863fe0
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -4406,8 +4406,6 @@ char* nsImapProtocol::CreateNewLineFromSocket()
AlertUserEventUsingId(IMAP_CONNECTION_REFUSED_ERROR);
break;
case NS_ERROR_NET_TIMEOUT:
AlertUserEventUsingId(IMAP_NET_TIMEOUT_ERROR);
break;
case NS_ERROR_NET_RESET:
case NS_BASE_STREAM_CLOSED:
case NS_ERROR_NET_INTERRUPT:
@ -4416,10 +4414,12 @@ char* nsImapProtocol::CreateNewLineFromSocket()
m_runningUrl->SetRerunningUrl(PR_TRUE);
m_retryUrlOnError = PR_TRUE;
}
else if (rv == NS_ERROR_NET_TIMEOUT)
AlertUserEventUsingId(IMAP_NET_TIMEOUT_ERROR);
else
AlertUserEventUsingId(TestFlag(IMAP_RECEIVED_GREETING)
? IMAP_SERVER_DISCONNECTED : IMAP_SERVER_DROPPED_CONNECTION);
break;
break;
default:
break;
}