diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 9e9488da3..099802a27 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1862,7 +1862,12 @@ tr_torrentSetPeerLimit( tr_torrent * tor, { assert( tr_isTorrent( tor ) ); - tor->maxConnectedPeers = maxConnectedPeers; + if ( tor->maxConnectedPeers != maxConnectedPeers ) + { + tor->maxConnectedPeers = maxConnectedPeers; + + tr_torrentSetDirty( tor ); + } } uint16_t