timed_wait does not seem to work as expected, revert to regular wait()

This commit is contained in:
Arvid Norberg 2009-04-15 16:32:05 +00:00
parent 2d0370c893
commit 509c8ed402
1 changed files with 3 additions and 2 deletions

View File

@ -1027,8 +1027,9 @@ namespace libtorrent
{
// if there hasn't been an event in one second
// see if we should flush the cache
if (!m_signal.timed_wait(jl, boost::get_system_time() + boost::posix_time::seconds(1)))
flush_expired_pieces();
// if (!m_signal.timed_wait(jl, boost::posix_time::seconds(1)))
// flush_expired_pieces();
m_signal.wait(jl);
}
if (m_abort && m_jobs.empty())