1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 04:53:27 +00:00

(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

View file

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