From ebe89309c3f9e2a4fe97a5d71d5eaa75635f5f51 Mon Sep 17 00:00:00 2001 From: Andrey Slusar Date: Fri, 24 Mar 2006 20:44:18 +0000 Subject: Add rblibtorrent 0.9.1, a C++ library implementing a BitTorrent client. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: ports/94014 Submitted by: Johan Ström --- .../files/patch-peer_connection.cpp | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 net-p2p/libtorrent-rasterbar-14/files/patch-peer_connection.cpp (limited to 'net-p2p/libtorrent-rasterbar-14/files/patch-peer_connection.cpp') diff --git a/net-p2p/libtorrent-rasterbar-14/files/patch-peer_connection.cpp b/net-p2p/libtorrent-rasterbar-14/files/patch-peer_connection.cpp new file mode 100644 index 000000000000..19c691734589 --- /dev/null +++ b/net-p2p/libtorrent-rasterbar-14/files/patch-peer_connection.cpp @@ -0,0 +1,35 @@ +--- src/peer_connection.cpp.orig Fri Dec 16 00:32:21 2005 ++++ src/peer_connection.cpp Thu Feb 23 13:07:01 2006 +@@ -1011,6 +1011,7 @@ + + if (b != m_download_queue.end()) + { ++/* + for (i = m_download_queue.begin(); + i != b; ++i) + { +@@ -1023,7 +1024,7 @@ + // be requested from other peers + picker.abort_download(*i); + } +- ++*/ + #ifdef TORRENT_VERBOSE_LOGGING + (*m_logger) << to_simple_string(second_clock::universal_time()) + << " <== PIECE [ piece: " << p.piece << " | " +@@ -1031,12 +1032,14 @@ + "s: " << p.start << " | " + "l: " << p.length << " ]\n"; + #endif +- ++/* + // remove the request that just finished + // from the download queue plus the + // skipped blocks. + m_download_queue.erase(m_download_queue.begin() + , boost::next(b)); ++*/ ++ m_download_queue.erase(b); + send_block_requests(); + } + else -- cgit v1.2.3