aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/rblibtorrent/files/patch-peer_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/rblibtorrent/files/patch-peer_connection.cpp')
-rw-r--r--net-p2p/rblibtorrent/files/patch-peer_connection.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/net-p2p/rblibtorrent/files/patch-peer_connection.cpp b/net-p2p/rblibtorrent/files/patch-peer_connection.cpp
new file mode 100644
index 000000000000..19c691734589
--- /dev/null
+++ b/net-p2p/rblibtorrent/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