1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

experimental fix for #4084

This commit is contained in:
Jordan Lee 2011-03-06 23:49:40 +00:00
parent 9145bce9cd
commit c9897ff97a

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.