provide workaround for stuck download bug.

This commit is contained in:
blakeross%telocity.com 2002-12-07 21:52:16 +00:00
parent 173fd3857a
commit a2d7fb800b

View File

@ -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));