(trunk, libT) #2365: Peer settings for an individual torrent should override the global limit.

This commit is contained in:
Charles Kerr 2009-08-31 15:59:43 +00:00
parent badc3dc610
commit ed512c215f
1 changed files with 1 additions and 1 deletions

View File

@ -2474,7 +2474,7 @@ static void
enforceTorrentPeerLimit( Torrent * t, uint64_t now )
{
int n = tr_ptrArraySize( &t->peers );
const int max = tr_sessionGetPeerLimitPerTorrent( t->tor->session );
const int max = tr_torrentGetPeerLimit( t->tor );
if( n > max )
{
void * base = tr_ptrArrayBase( &t->peers );