fix assertion about 0 msg size when first msg you select is fetched with mpod r=cavin, sr=mscott

This commit is contained in:
bienvenu%netscape.com 2001-12-04 00:18:12 +00:00
Родитель a119df5501
Коммит 2ee9be3ad5
1 изменённых файлов: 10 добавлений и 9 удалений

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

@ -2688,7 +2688,8 @@ void nsImapServerResponseParser::SetSyntaxError(PRBool error)
nsresult nsImapServerResponseParser::BeginMessageDownload(const char *content_type) nsresult nsImapServerResponseParser::BeginMessageDownload(const char *content_type)
{ {
NS_ASSERTION(fSizeOfMostRecentMessage > 0, "most recent message has 0 or negative size"); // if we're downloading a message, assert that we know its size.
NS_ASSERTION(fDownloadingHeaders || fSizeOfMostRecentMessage > 0, "most recent message has 0 or negative size");
nsresult rv = fServerConnection.BeginMessageDownLoad(fSizeOfMostRecentMessage, nsresult rv = fServerConnection.BeginMessageDownLoad(fSizeOfMostRecentMessage,
content_type); content_type);
if (NS_FAILED(rv)) if (NS_FAILED(rv))