mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
* More fiddling of the throttle code.
* Fixed a bug that caused idle looping due to epoll_wait timeout using msecs rather than usecs resolution. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@590 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -75,7 +75,7 @@ TaskScheduler::erase(TaskItem* task) {
|
||||
|
||||
void
|
||||
TaskScheduler::execute(Timer time) {
|
||||
m_entry = std::find_if(begin(), end(), rak::less_equal(time, rak::mem_ptr_ref(&value_type::first)));
|
||||
m_entry = std::find_if(begin(), end(), rak::less(time, rak::mem_ptr_ref(&value_type::first)));
|
||||
|
||||
// Since we are always using the front rather than a splice of the
|
||||
// due tasks, it is safe to erase them from within other tasks.
|
||||
|
||||
Reference in New Issue
Block a user