fix channel_state assert

This commit is contained in:
Arvid Norberg 2009-06-19 18:19:24 +00:00
parent 5ce7aed078
commit c47f9cd64c
1 changed files with 2 additions and 1 deletions

View File

@ -3653,7 +3653,8 @@ namespace libtorrent
"download: " << (m_download_queue.size() * 16 * 1024 + 30)
<< " prio: " << m_priority << " ]\n";
#endif
TORRENT_ASSERT(m_channel_state[download_channel] == peer_info::bw_idle);
TORRENT_ASSERT(m_channel_state[download_channel] == peer_info::bw_idle
|| m_channel_state[download_channel] == peer_info::bw_disk);
TORRENT_ASSERT(m_outstanding_bytes >= 0);
m_channel_state[download_channel] = peer_info::bw_limit;
m_ses.m_download_rate.request_bandwidth(self()