mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 391869 - pause -> cancel -> retry doesn't resume/retry download. r=cbiesinger
This commit is contained in:
parent
202af28de4
commit
912c38a3f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user