From 4a352eb8814b5030b5097147cb3ba0a2f5448a94 Mon Sep 17 00:00:00 2001 From: "edward.lee%engineering.uiuc.edu" Date: Mon, 1 Oct 2007 19:12:26 +0000 Subject: [PATCH] Bug 395330 - Active downloads don't appear in download manager. r=sdwilsh, blocking-ff3=mconnor --- toolkit/components/downloads/src/nsDownloadManager.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toolkit/components/downloads/src/nsDownloadManager.cpp b/toolkit/components/downloads/src/nsDownloadManager.cpp index a424315369b..e527b3d1ade 100644 --- a/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -1795,12 +1795,10 @@ nsDownload::OnProgressChange64(nsIWebProgress *aWebProgress, } } - // Fetch the entityID + // Fetch the entityID, but if we can't get it, don't panic (non-resumable) nsCOMPtr resumableChannel(do_QueryInterface(aRequest)); - if (resumableChannel) { - rv = resumableChannel->GetEntityID(mEntityID); - NS_ENSURE_SUCCESS(rv, rv); - } + if (resumableChannel) + (void)resumableChannel->GetEntityID(mEntityID); // Update the state and the database rv = SetState(nsIDownloadManager::DOWNLOAD_DOWNLOADING);