diff --git a/mozilla/toolkit/components/downloads/src/nsDownloadManager.cpp b/mozilla/toolkit/components/downloads/src/nsDownloadManager.cpp index 36d90ac0481..10ae680d768 100644 --- a/mozilla/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/mozilla/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -2214,6 +2214,8 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress, } } } + + gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull); } nsAutoString path; @@ -2242,8 +2244,6 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress, } #endif - gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull); - // break the cycle we created in AddDownload mCancelable = nsnull; @@ -2398,4 +2398,3 @@ nsDownload::IsPaused() { return mPaused; } -