diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 21:24:10 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 21:24:10 +0000 |
commit | ab324f2466599fb0042c0e2b3244b65abff10bfe (patch) | |
tree | 24d450a18e040f033be0f14c5165387d8d37199b /chrome/browser/resource_dispatcher_host.cc | |
parent | cf2ef75e53c54e8d4ffdf4af345ea4050205f7a4 (diff) | |
download | chromium_src-ab324f2466599fb0042c0e2b3244b65abff10bfe.zip chromium_src-ab324f2466599fb0042c0e2b3244b65abff10bfe.tar.gz chromium_src-ab324f2466599fb0042c0e2b3244b65abff10bfe.tar.bz2 |
Avoid starting the pause timer if it is already started.
R=sky
Review URL: http://codereview.chromium.org/2443
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resource_dispatcher_host.cc')
-rw-r--r-- | chrome/browser/resource_dispatcher_host.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/resource_dispatcher_host.cc b/chrome/browser/resource_dispatcher_host.cc index adcda4c..e677027 100644 --- a/chrome/browser/resource_dispatcher_host.cc +++ b/chrome/browser/resource_dispatcher_host.cc @@ -398,8 +398,9 @@ class ResourceDispatcherHost::DownloadEventHandler private: void StartPauseTimer() { - pause_timer_.Start(TimeDelta::FromMilliseconds(kThrottleTimeMs), this, - &DownloadEventHandler::CheckWriteProgress); + if (!pause_timer_.IsRunning()) + pause_timer_.Start(TimeDelta::FromMilliseconds(kThrottleTimeMs), this, + &DownloadEventHandler::CheckWriteProgress); } int download_id_; |