Bug 381784 - nsDownload::SetState should assert if the new state is the same as the old state. r=mano

This commit is contained in:
sdwilsh%shawnwilsher.com 2007-05-24 21:42:22 +00:00
Родитель a6dc8d82cd
Коммит e74ea1012d
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1164,8 +1164,8 @@ nsDownload::~nsDownload()
nsresult
nsDownload::SetState(DownloadState aState)
{
if (mDownloadState == aState)
return NS_OK;
NS_ASSERTION(mDownloadState != aState,
"Trying to set the download state to what it already is set to!");
PRInt16 oldState = mDownloadState;
mDownloadState = aState;