experimental fix for #4084

This commit is contained in:
Jordan Lee 2011-03-06 23:49:40 +00:00
parent 9145bce9cd
commit c9897ff97a
1 changed files with 1 additions and 1 deletions

View 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.