Bug 391869 - pause -> cancel -> retry doesn't resume/retry download. r=cbiesinger

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-08-12 15:15:15 -07:00
parent bc6feecd10
commit 86ee75e0f0

View File

@ -793,6 +793,10 @@ nsDownloadManager::CancelDownload(PRUint32 aID)
if (CompletedSuccessfully(dl->mDownloadState))
return NS_OK;
// if the download is paused, we have to resume it so we can cancel it
if (dl->mPaused)
(void)dl->PauseResume(PR_FALSE);
// Cancel using the provided object
if (dl->mCancelable)
dl->mCancelable->Cancel(NS_BINDING_ABORTED);