From 67aa7ef9fccea4a43bbc9cd916c6649943771499 Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 12 Nov 2009 16:24:47 +0000 Subject: [PATCH] cautious optimism git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@545 e16421f0-f15b-0410-abcd-98678b794739 --- sendrecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendrecv.cpp b/sendrecv.cpp index e56deb5..5cdf7e1 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -40,7 +40,7 @@ void Channel::AddPeakHashes (Datagram& dgram) { void Channel::AddUncleHashes (Datagram& dgram, bin64_t pos) { bin64_t peak = file().peak_for(pos); - while (pos!=peak && !data_out_cap_.within(pos.parent()) && + while (pos!=peak && ((NOW&7)==7 || !data_out_cap_.within(pos.parent())) && ack_in_.get(pos.parent())==bins::EMPTY) { bin64_t uncle = pos.sibling(); dgram.Push8(P2TP_HASH); -- 2.20.1