From ed512c215f1b722fa21255d9288863107450b4e0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 31 Aug 2009 15:59:43 +0000 Subject: [PATCH] (trunk, libT) #2365: Peer settings for an individual torrent should override the global limit. --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 8dd81cfa9..c551945a7 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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 );