From 9d2c0e370efc9ebac292662c3e091e99cab8c573 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 31 Dec 2007 10:11:10 +0000 Subject: [PATCH] fixed broken assert --- src/peer_connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 176d07dec..a57982702 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2920,7 +2920,8 @@ namespace libtorrent { // this peer is in the bandwidth history iff max_assignable < limit TORRENT_ASSERT((m_bandwidth_limit[i].max_assignable() < m_bandwidth_limit[i].throttle()) - == m_ses.m_bandwidth_manager[i]->is_in_history(this)); + == m_ses.m_bandwidth_manager[i]->is_in_history(this) + || m_bandwidth_limit[i].throttle() == bandwidth_limit::inf); } if (m_peer_info) {