From 509c8ed402e662bae35a96f90a143d4048c02841 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 15 Apr 2009 16:32:05 +0000 Subject: [PATCH] timed_wait does not seem to work as expected, revert to regular wait() --- src/disk_io_thread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index adbb4e375..af4eb0c5a 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -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())