fixed assert

This commit is contained in:
Arvid Norberg 2008-01-05 00:54:30 +00:00
parent 14b49a08ee
commit 0ed722036f
1 changed files with 2 additions and 2 deletions

View File

@ -308,7 +308,7 @@ private:
l.unlock();
t->expire_bandwidth(m_channel, qe.max_block_size);
l.lock();
TORRENT_ASSERT(amount == limit - m_current_quota);
amount = limit - m_current_quota;
continue;
}
@ -383,7 +383,7 @@ private:
l.lock();
add_history_entry(history_entry<PeerConnection, Torrent>(
qe.peer, t, hand_out_amount, now + bw_window_size));
TORRENT_ASSERT(amount == limit - m_current_quota);
amount = limit - m_current_quota;
}
if (!q.empty()) m_queue.insert(m_queue.begin(), q.begin(), q.end());
if (!tmp.empty()) m_queue.insert(m_queue.begin(), tmp.begin(), tmp.end());