fixed issue in session_impl::on_disk

This commit is contained in:
Arvid Norberg 2011-04-01 08:08:41 +00:00
parent 91327f71da
commit d4a9a9ae77
1 changed files with 2 additions and 2 deletions

View File

@ -2482,7 +2482,7 @@ namespace aux {
// way of limiting it
int limit = m_connections.size();
do
while (m_next_disk_peer != m_connections.end() && limit > 0 && can_write_to_disk())
{
--limit;
peer_connection* p = m_next_disk_peer->get();
@ -2491,8 +2491,8 @@ namespace aux {
if (p->m_channel_state[peer_connection::download_channel]
!= peer_info::bw_disk) continue;
p->on_disk();
}
} while (m_next_disk_peer != m_connections.end() && limit > 0 && can_write_to_disk());
}
// used to cache the current time