diff --git a/toolkit/components/downloads/src/nsDownloadManager.cpp b/toolkit/components/downloads/src/nsDownloadManager.cpp index bfde93f78fe3..21d720cf4e81 100644 --- a/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -1846,6 +1846,7 @@ nsDownload::nsDownload():mDownloadState(nsIDownloadManager::DOWNLOAD_NOTSTARTED) mMaxBytes(LL_ZERO), mStartTime(LL_ZERO), mLastUpdate(PR_Now() - (PRUint32)gInterval), + mPaused(PR_FALSE), mSpeed(0) { } @@ -2353,10 +2354,12 @@ nsDownload::Pause(PRBool aPaused) if (mRequest) { if (aPaused) { mRequest->Suspend(); + mPaused = PR_TRUE; mDownloadState = nsIDownloadManager::DOWNLOAD_PAUSED; } else { mRequest->Resume(); + mPaused = PR_FALSE; mDownloadState = nsIDownloadManager::DOWNLOAD_DOWNLOADING; } }