]> granicus.if.org Git - transmission/commitdiff
experimental fix for #4084
authorJordan Lee <jordan@transmissionbt.com>
Sun, 6 Mar 2011 23:49:40 +0000 (23:49 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 6 Mar 2011 23:49:40 +0000 (23:49 +0000)
libtransmission/peer-mgr.c

index 184bcefc6f744082f7cd14385aa922ffd1a8a0e6..6277683882621c9800b1683a85b45b4b013848e0 100644 (file)
@@ -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.