timer fix

This commit is contained in:
Arvid Norberg 2010-06-21 05:45:45 +00:00
parent 69001e6a6b
commit 996c68dfa7
1 changed files with 3 additions and 0 deletions

View File

@ -2282,6 +2282,9 @@ namespace libtorrent
{
ptime now = time_now_hires();
TORRENT_ASSERT(now >= m_last_file_check);
// this happens sometimes on windows for some reason
if (now < m_last_file_check) now = m_last_file_check;
#if BOOST_VERSION > 103600
if (now - m_last_file_check < milliseconds(m_settings.file_checks_delay_per_block))
{