added clients to identify_client and a minor fix

This commit is contained in:
Arvid Norberg 2006-12-27 15:14:17 +00:00
parent 8ab5ba2cf5
commit d50ab33855
2 changed files with 6 additions and 1 deletions

View File

@ -145,12 +145,14 @@ namespace
, map_entry("AZ", "Azureus")
, map_entry("BB", "BitBuddy")
, map_entry("BC", "BitComet")
, map_entry("BF", "Bitflu")
, map_entry("BS", "BTSlave")
, map_entry("BX", "BittorrentX")
, map_entry("CD", "Enhanced CTorrent")
, map_entry("CT", "CTorrent")
, map_entry("DE", "Deluge")
, map_entry("ES", "electric sheep")
, map_entry("HL", "Halite")
, map_entry("KT", "KTorrent")
, map_entry("LP", "lphant")
, map_entry("LT", "libtorrent")
@ -159,6 +161,7 @@ namespace
, map_entry("MP", "MooPolice")
, map_entry("MT", "Moonlight Torrent")
, map_entry("O", "Osprey Permaseed")
, map_entry("QT", "Qt 4")
, map_entry("R", "Tribler")
, map_entry("S", "Shadow")
, map_entry("SB", "Swiftbit")

View File

@ -1382,10 +1382,12 @@ namespace libtorrent
void peer_connection::send_block_requests()
{
INVARIANT_CHECK;
if (has_peer_choked()) return;
boost::shared_ptr<torrent> t = m_torrent.lock();
assert(t);
assert(!has_peer_choked());
if ((int)m_download_queue.size() >= m_desired_queue_size) return;