From c9897ff97a2dfaee8f6e74b15433590816bf9b8e Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 6 Mar 2011 23:49:40 +0000 Subject: [PATCH] experimental fix for #4084 --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 184bcefc6..627768388 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -3136,7 +3136,7 @@ shouldPeerBeClosed( const Torrent * t, /* if we're seeding and the peer has everything we have, * and enough time has passed for a pex exchange, then disconnect */ - if( tr_torrentIsSeed( tor ) && tr_bitsetHasSet( &peer->have, tr_cpBlockBitset( &tor->completion ) ) ) + if( tr_torrentIsSeed( tor ) && ( peer->progress >= 1.0f ) ) return !tr_torrentAllowsPex(tor) || (now-atom->time>=30); /* disconnect if it's been too long since piece data has been transferred. -- 2.40.0