diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-29 17:57:55 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-29 17:57:55 +0000 |
commit | 5452d7e80ce2df298e15e6a5e17effcb26a51bf2 (patch) | |
tree | d74922b50739b11a1a6934e51f7754f982b8910f /chrome/browser | |
parent | 789894e4837d8a9f586bfe494b90fce482c1388a (diff) | |
download | chromium_src-5452d7e80ce2df298e15e6a5e17effcb26a51bf2.zip chromium_src-5452d7e80ce2df298e15e6a5e17effcb26a51bf2.tar.gz chromium_src-5452d7e80ce2df298e15e6a5e17effcb26a51bf2.tar.bz2 |
Make sure we poll immediately on the first syncer loop.
BUG=36460
TEST=Try to enable sync on an Ubuntu VM that has been running less than 8 hours, and make sure it succeeds
Review URL: http://codereview.chromium.org/1421003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/sync/engine/syncer_thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sync/engine/syncer_thread.cc b/chrome/browser/sync/engine/syncer_thread.cc index 33354d0..7e62e7c 100644 --- a/chrome/browser/sync/engine/syncer_thread.cc +++ b/chrome/browser/sync/engine/syncer_thread.cc @@ -262,7 +262,7 @@ void SyncerThread::ThreadMainLoop() { // We block until the CV is signaled (e.g a control field changed, loss of // network connection, nudge, spurious, etc), or the poll interval elapses. TimeDelta sleep_time = end_wait - TimeTicks::Now(); - if (sleep_time > TimeDelta::FromSeconds(0)) { + if (initial_sync_for_thread || sleep_time > TimeDelta::FromSeconds(0)) { vault_field_changed_.TimedWait(sleep_time); if (TimeTicks::Now() < end_wait) { |