зеркало из https://github.com/mozilla/gecko-dev.git
fix assertion about 0 msg size when first msg you select is fetched with mpod r=cavin, sr=mscott
This commit is contained in:
Родитель
a119df5501
Коммит
2ee9be3ad5
|
@ -2688,14 +2688,15 @@ 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.
|
||||||
nsresult rv = fServerConnection.BeginMessageDownLoad(fSizeOfMostRecentMessage,
|
NS_ASSERTION(fDownloadingHeaders || fSizeOfMostRecentMessage > 0, "most recent message has 0 or negative size");
|
||||||
content_type);
|
nsresult rv = fServerConnection.BeginMessageDownLoad(fSizeOfMostRecentMessage,
|
||||||
if (NS_FAILED(rv))
|
content_type);
|
||||||
{
|
if (NS_FAILED(rv))
|
||||||
skip_to_CRLF();
|
{
|
||||||
fServerConnection.PseudoInterrupt(PR_TRUE);
|
skip_to_CRLF();
|
||||||
fServerConnection.AbortMessageDownLoad();
|
fServerConnection.PseudoInterrupt(PR_TRUE);
|
||||||
}
|
fServerConnection.AbortMessageDownLoad();
|
||||||
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче