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 );