mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
provide workaround for stuck download bug.
This commit is contained in:
parent
173fd3857a
commit
a2d7fb800b
@ -542,7 +542,7 @@ nsDownloadManager::CancelDownload(const PRUnichar* aPath)
|
||||
nsresult rv = NS_OK;
|
||||
nsStringKey key(aPath);
|
||||
if (!mCurrDownloads.Exists(&key))
|
||||
return NS_ERROR_FAILURE;
|
||||
return RemoveDownload(aPath); // XXXBlake for now, to provide a workaround for stuck downloads
|
||||
|
||||
nsCOMPtr<nsIDownload> download;
|
||||
nsDownload* internalDownload = NS_STATIC_CAST(nsDownload*, mCurrDownloads.Get(&key));
|
||||
|
Loading…
Reference in New Issue
Block a user