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:
parent
badc3dc610
commit
ed512c215f
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue